From aa57d6bc98d7bc369891f68af29c465b7c3333cb Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Mon, 22 Jul 2024 10:24:40 +1000 Subject: buffer view struct --- src/ral/ral_common.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2