From 86810460eed75c19beb9f524e75c193edfa9ddfd Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 28 Dec 2024 18:21:11 +1100 Subject: index buffers --- video.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'video.hpp') 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; -- cgit v1.2.3-54-g00ecf