gpu: implement RenderBundleEncoder.drawIndexed
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
36243b2871
commit
dd3543f802
2 changed files with 56 additions and 57 deletions
|
|
@ -1127,25 +1127,25 @@ const render_bundle_encoder_vtable = RenderBundleEncoder.VTable{
|
|||
c.wgpuRenderBundleEncoderDraw(@ptrCast(c.WGPURenderBundleEncoder, ptr), vertex_count, instance_count, first_vertex, first_instance);
|
||||
}
|
||||
}).draw,
|
||||
// .drawIndexed = (struct {
|
||||
// pub fn drawIndexed(
|
||||
// ptr: *anyopaque,
|
||||
// index_count: u32,
|
||||
// instance_count: u32,
|
||||
// first_index: u32,
|
||||
// base_vertex: i32,
|
||||
// first_instance: u32,
|
||||
// ) void {
|
||||
// c.wgpuRenderBundleEncoderDrawIndexed(
|
||||
// @ptrCast(c.WGPURenderBundleEncoder, ptr),
|
||||
// index_count,
|
||||
// instance_count,
|
||||
// first_index,
|
||||
// base_vertex,
|
||||
// first_instance,
|
||||
// );
|
||||
// }
|
||||
// }).drawIndexed,
|
||||
.drawIndexed = (struct {
|
||||
pub fn drawIndexed(
|
||||
ptr: *anyopaque,
|
||||
index_count: u32,
|
||||
instance_count: u32,
|
||||
first_index: u32,
|
||||
base_vertex: i32,
|
||||
first_instance: u32,
|
||||
) void {
|
||||
c.wgpuRenderBundleEncoderDrawIndexed(
|
||||
@ptrCast(c.WGPURenderBundleEncoder, ptr),
|
||||
index_count,
|
||||
instance_count,
|
||||
first_index,
|
||||
base_vertex,
|
||||
first_instance,
|
||||
);
|
||||
}
|
||||
}).drawIndexed,
|
||||
// .drawIndexedIndirect = (struct {
|
||||
// pub fn drawIndexedIndirect(ptr: *anyopaque, indirect_buffer: Buffer, indirect_offset: u64) void {
|
||||
// c.wgpuRenderBundleEncoderDrawIndexedIndirect(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue