gpu: implement ComputePassEncoder.dispatchIndirect
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
061ca10f78
commit
fad7c847d0
2 changed files with 24 additions and 2 deletions
|
|
@ -1625,6 +1625,19 @@ const compute_pass_encoder_vtable = ComputePassEncoder.VTable{
|
|||
);
|
||||
}
|
||||
}).dispatch,
|
||||
.dispatchIndirect = (struct {
|
||||
pub fn dispatchIndirect(
|
||||
ptr: *anyopaque,
|
||||
indirect_buffer: Buffer,
|
||||
indirect_offset: u64,
|
||||
) void {
|
||||
c.wgpuComputePassEncoderDispatchIndirect(
|
||||
@ptrCast(c.WGPUComputePassEncoder, ptr),
|
||||
@ptrCast(c.WGPUBuffer, indirect_buffer.ptr),
|
||||
indirect_offset,
|
||||
);
|
||||
}
|
||||
}).dispatchIndirect,
|
||||
.end = (struct {
|
||||
pub fn end(ptr: *anyopaque) void {
|
||||
c.wgpuComputePassEncoderEnd(@ptrCast(c.WGPUComputePassEncoder, ptr));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue