gpu: implement Dawn deviceCreateCommandEncoder

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 17:13:14 -07:00 committed by Stephen Gutekanst
parent 315796ed12
commit 0afe30b3f2

View file

@ -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 {