gpu: implement Dawn deviceCreateBindGroup
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
3d19b8991d
commit
b3cc3d9f5f
1 changed files with 4 additions and 3 deletions
|
|
@ -396,9 +396,10 @@ pub const Interface = gpu.Interface(struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceCreateBindGroup(device: *gpu.Device, descriptor: *const gpu.BindGroup.Descriptor) *gpu.BindGroup {
|
pub inline fn deviceCreateBindGroup(device: *gpu.Device, descriptor: *const gpu.BindGroup.Descriptor) *gpu.BindGroup {
|
||||||
_ = device;
|
return @ptrCast(*gpu.BindGroup, procs.deviceCreateBindGroup.?(
|
||||||
_ = descriptor;
|
@ptrCast(c.WGPUDevice, device),
|
||||||
unreachable;
|
@ptrCast(*const c.WGPUBindGroupDescriptor, descriptor),
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceCreateBindGroupLayout(device: *gpu.Device, descriptor: *const gpu.BindGroupLayout.Descriptor) *gpu.BindGroupLayout {
|
pub inline fn deviceCreateBindGroupLayout(device: *gpu.Device, descriptor: *const gpu.BindGroupLayout.Descriptor) *gpu.BindGroupLayout {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue