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);
}
+1 -9
View File
@@ -1822,15 +1822,7 @@ pub export fn strollCmdDrawIndexed(p_cmd: vk.CommandBuffer, index_count: u32, in
defer entryPointEndLogTrace();
const cmd = Dispatchable(CommandBuffer).fromHandleObject(p_cmd) catch |err| return errorLogger(err);
notImplementedWarning();
_ = cmd;
_ = index_count;
_ = instance_count;
_ = first_index;
_ = vertex_offset;
_ = first_instance;
cmd.drawIndexed(index_count, instance_count, first_index, vertex_offset, first_instance) catch |err| return errorLogger(err);
}
pub export fn strollCmdDrawIndexedIndirect(p_cmd: vk.CommandBuffer, p_buffer: vk.Buffer, offset: vk.DeviceSize, count: u32, stride: u32) callconv(vk.vulkan_call_conv) void {