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 {
|
pub inline fn deviceCreateCommandEncoder(device: *gpu.Device, descriptor: ?*const gpu.CommandEncoder.Descriptor) *gpu.CommandEncoder {
|
||||||
_ = device;
|
return @ptrCast(*gpu.CommandEncoder, procs.deviceCreateCommandEncoder.?(
|
||||||
_ = descriptor;
|
@ptrCast(c.WGPUDevice, device),
|
||||||
unreachable;
|
@ptrCast(*const c.WGPUCommandEncoderDescriptor, descriptor),
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceCreateComputePipeline(device: *gpu.Device, descriptor: *const gpu.ComputePipeline.Descriptor) *gpu.ComputePipeline {
|
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