summaryrefslogtreecommitdiff
path: root/src/ral
diff options
context:
space:
mode:
authoromnisci3nce <omniscient.oce@gmail.com>2024-07-22 10:24:40 +1000
committeromnisci3nce <omniscient.oce@gmail.com>2024-07-22 10:24:40 +1000
commitaa57d6bc98d7bc369891f68af29c465b7c3333cb (patch)
tree1f4258618226bffb846f67181fd81b2b7e57a3bc /src/ral
parent4f09bcb7dc48dc9b0d97ce3a9f73ffc6eee49045 (diff)
buffer view struct
Diffstat (limited to 'src/ral')
-rw-r--r--src/ral/ral_common.h7
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;