gpu: correct renderPassEncoderDrawIndexed signature
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
4ef2164b2e
commit
c7216ed240
3 changed files with 6 additions and 6 deletions
|
|
@ -894,13 +894,13 @@ pub const Interface = gpu.Interface(struct {
|
|||
);
|
||||
}
|
||||
|
||||
pub inline fn renderPassEncoderDrawIndexed(render_pass_encoder: *gpu.RenderPassEncoder, index_count: u32, instance_count: u32, first_index: u32, base_vertex: u32, first_instance: u32) void {
|
||||
pub inline fn renderPassEncoderDrawIndexed(render_pass_encoder: *gpu.RenderPassEncoder, index_count: u32, instance_count: u32, first_index: u32, base_vertex: i32, first_instance: u32) void {
|
||||
procs.renderPassEncoderDrawIndexed.?(
|
||||
@ptrCast(c.WGPURenderPassEncoder, render_pass_encoder),
|
||||
index_count,
|
||||
instance_count,
|
||||
first_index,
|
||||
@bitCast(i32, base_vertex), // TODO: wrong signature?
|
||||
base_vertex,
|
||||
first_instance,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue