gpu: implement ComputePipeline.getBindGroupLayout
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
7e54d9b4ae
commit
cad271345a
2 changed files with 16 additions and 2 deletions
|
|
@ -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" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue