diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ral/ral_common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ral/ral_common.h b/src/ral/ral_common.h index 2bcc013..8fa09d9 100644 --- a/src/ral/ral_common.h +++ b/src/ral/ral_common.h @@ -23,6 +23,13 @@ TYPED_POOL(GPU_Renderpass, Renderpass); #define BUFFER_GET(h) (Buffer_pool_get(&context.resource_pools->buffers, h)) #define TEXTURE_GET(h) (Texture_pool_get(&context.resource_pools->textures, h)) +// --- Views +typedef struct GPU_BufferView { + BufferHandle buf; + size_t offset; + size_t bytes; +} GPU_BufferView; + // --- Pools typedef struct GPU_BackendPools { Pipeline_pool pipelines; |