gpu: implement Dawn deviceCreateCommandEncoder
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
315796ed12
commit
0afe30b3f2
1 changed files with 4 additions and 3 deletions
|
|
@ -417,9 +417,10 @@ pub const Interface = gpu.Interface(struct {
|
|||
}
|
||||
|
||||
pub inline fn deviceCreateCommandEncoder(device: *gpu.Device, descriptor: ?*const gpu.CommandEncoder.Descriptor) *gpu.CommandEncoder {
|
||||
_ = device;
|
||||
_ = descriptor;
|
||||
unreachable;
|
||||
return @ptrCast(*gpu.CommandEncoder, procs.deviceCreateCommandEncoder.?(
|
||||
@ptrCast(c.WGPUDevice, device),
|
||||
@ptrCast(*const c.WGPUCommandEncoderDescriptor, descriptor),
|
||||
));
|
||||
}
|
||||
|
||||
pub inline fn deviceCreateComputePipeline(device: *gpu.Device, descriptor: *const gpu.ComputePipeline.Descriptor) *gpu.ComputePipeline {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue