summaryrefslogtreecommitdiffstats
path: root/drivers/metal/metal_objects.h
diff options
context:
space:
mode:
authorPatrick Dawson <pat@dw.is>2024-08-30 22:17:41 +0200
committerPatrick Dawson <pat@dw.is>2024-08-30 22:37:51 +0200
commitf381cee82f7e5a75b11b30c5daf6dca19e5b7158 (patch)
tree114112a686446a38d676710ea073040613811fd6 /drivers/metal/metal_objects.h
parenta5830f6eb9fe25fbb7e58a723dbea8509aec8a85 (diff)
downloadredot-engine-f381cee82f7e5a75b11b30c5daf6dca19e5b7158.tar.gz
Metal: bind index buffer with offset
Diffstat (limited to 'drivers/metal/metal_objects.h')
-rw-r--r--drivers/metal/metal_objects.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/metal/metal_objects.h b/drivers/metal/metal_objects.h
index f0a3e85f88..97f33bb1e8 100644
--- a/drivers/metal/metal_objects.h
+++ b/drivers/metal/metal_objects.h
@@ -227,6 +227,7 @@ public:
id<MTLRenderCommandEncoder> encoder = nil;
id<MTLBuffer> __unsafe_unretained index_buffer = nil; // Buffer is owned by RDD.
MTLIndexType index_type = MTLIndexTypeUInt16;
+ uint32_t index_offset = 0;
LocalVector<id<MTLBuffer> __unsafe_unretained> vertex_buffers;
LocalVector<NSUInteger> vertex_offsets;
// clang-format off