gpu: implement ComputePipeline.getBindGroupLayout

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-15 21:27:23 -07:00 committed by Stephen Gutekanst
parent 7e54d9b4ae
commit cad271345a
2 changed files with 16 additions and 2 deletions

View file

@ -1312,6 +1312,14 @@ const compute_pipeline_vtable = ComputePipeline.VTable{
c.wgpuComputePipelineSetLabel(@ptrCast(c.WGPUComputePipeline, ptr), label);
}
}).setLabel,
.getBindGroupLayout = (struct {
pub fn getBindGroupLayout(ptr: *anyopaque, group_index: u32) BindGroupLayout {
return wrapBindGroupLayout(c.wgpuComputePipelineGetBindGroupLayout(
@ptrCast(c.WGPUComputePipeline, ptr),
group_index,
));
}
}).getBindGroupLayout,
};
test "syntax" {