adding draw indexed
Build / build (push) Successful in 58s
Test / build_and_test (push) Successful in 36m31s

This commit is contained in:
2026-04-30 02:16:49 +02:00
parent 621be5db35
commit 354c9891d6
6 changed files with 207 additions and 87 deletions
+5
View File
@@ -54,6 +54,7 @@ pub const DispatchTable = struct {
dispatch: *const fn (*Self, u32, u32, u32) VkError!void,
dispatchIndirect: *const fn (*Self, *Buffer, vk.DeviceSize) VkError!void,
draw: *const fn (*Self, usize, usize, usize, usize) VkError!void,
drawIndexed: *const fn (*Self, usize, usize, usize, usize, usize) VkError!void,
end: *const fn (*Self) VkError!void,
endRenderPass: *const fn (*Self) VkError!void,
executeCommands: *const fn (*Self, *Self) VkError!void,
@@ -214,6 +215,10 @@ pub inline fn draw(self: *Self, vertex_count: usize, instance_count: usize, firs
try self.dispatch_table.draw(self, vertex_count, instance_count, first_vertex, first_instance);
}
pub inline fn drawIndexed(self: *Self, index_count: usize, instance_count: usize, first_index: usize, vertex_offset: usize, first_instance: usize) VkError!void {
try self.dispatch_table.drawIndexed(self, index_count, instance_count, first_index, vertex_offset, first_instance);
}
pub inline fn endRenderPass(self: *Self) VkError!void {
try self.dispatch_table.endRenderPass(self);
}