summaryrefslogtreecommitdiff
path: root/video.hpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-28 18:21:11 +1100
committerquou <quou@disroot.org>2024-12-28 18:21:11 +1100
commit86810460eed75c19beb9f524e75c193edfa9ddfd (patch)
treefffd415c9d051ad4e0f5578d14d72c7418cf6a9a /video.hpp
parentd0b8f74f363095b00b46c32981078619a181a8b1 (diff)
index buffers
Diffstat (limited to 'video.hpp')
-rw-r--r--video.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/video.hpp b/video.hpp
index 453423b..d524d81 100644
--- a/video.hpp
+++ b/video.hpp
@@ -169,12 +169,19 @@ struct Vertex_Buffer_Binding {
int target;
};
+struct Index_Buffer_Binding {
+ Buffer_Id id;
+ size_t offset;
+};
+
struct Draw {
Vertex_Buffer_Binding* verts;
+ Index_Buffer_Binding inds;
int vertex_count;
int instance_count;
int first_vertex;
int first_instance;
+ int vertex_offset;
};
struct Device;