gpu: correct renderBundleEncoderDrawIndexed signature

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 19:33:29 -07:00 committed by Stephen Gutekanst
parent 9fc5ba10a1
commit 4f47dae142
3 changed files with 6 additions and 6 deletions

View file

@ -779,13 +779,13 @@ pub const Interface = gpu.Interface(struct {
procs.renderBundleEncoderDraw.?(@ptrCast(c.WGPURenderBundleEncoder, render_bundle_encoder), vertex_count, instance_count, first_vertex, first_instance);
}
pub inline fn renderBundleEncoderDrawIndexed(render_bundle_encoder: *gpu.RenderBundleEncoder, index_count: u32, instance_count: u32, first_index: u32, base_vertex: u32, first_instance: u32) void {
pub inline fn renderBundleEncoderDrawIndexed(render_bundle_encoder: *gpu.RenderBundleEncoder, index_count: u32, instance_count: u32, first_index: u32, base_vertex: i32, first_instance: u32) void {
procs.renderBundleEncoderDrawIndexed.?(
@ptrCast(c.WGPURenderBundleEncoder, render_bundle_encoder),
index_count,
instance_count,
first_index,
@bitCast(i32, base_vertex), // TODO: our signature is wrong here!
base_vertex,
first_instance,
);
}