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