gpu: implement RenderBundleEncoder.drawIndexedIndirect
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
dd3543f802
commit
e8c50ad878
2 changed files with 15 additions and 14 deletions
|
|
@ -1146,15 +1146,15 @@ const render_bundle_encoder_vtable = RenderBundleEncoder.VTable{
|
|||
);
|
||||
}
|
||||
}).drawIndexed,
|
||||
// .drawIndexedIndirect = (struct {
|
||||
// pub fn drawIndexedIndirect(ptr: *anyopaque, indirect_buffer: Buffer, indirect_offset: u64) void {
|
||||
// c.wgpuRenderBundleEncoderDrawIndexedIndirect(
|
||||
// @ptrCast(c.WGPURenderBundleEncoder, ptr),
|
||||
// @ptrCast(c.WGPUBuffer, indirect_buffer.ptr),
|
||||
// indirect_offset,
|
||||
// );
|
||||
// }
|
||||
// }).drawIndexedIndirect,
|
||||
.drawIndexedIndirect = (struct {
|
||||
pub fn drawIndexedIndirect(ptr: *anyopaque, indirect_buffer: Buffer, indirect_offset: u64) void {
|
||||
c.wgpuRenderBundleEncoderDrawIndexedIndirect(
|
||||
@ptrCast(c.WGPURenderBundleEncoder, ptr),
|
||||
@ptrCast(c.WGPUBuffer, indirect_buffer.ptr),
|
||||
indirect_offset,
|
||||
);
|
||||
}
|
||||
}).drawIndexedIndirect,
|
||||
// .drawIndirect = (struct {
|
||||
// pub fn drawIndirect(ptr: *anyopaque, indirect_buffer: Buffer, indirect_offset: u64) void {
|
||||
// c.wgpuRenderBundleEncoderDrawIndexedIndirect(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue