gpu: implement Dawn deviceCreateComputePipeline

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

View file

@ -424,9 +424,10 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn deviceCreateComputePipeline(device: *gpu.Device, descriptor: *const gpu.ComputePipeline.Descriptor) *gpu.ComputePipeline {
_ = device;
_ = descriptor;
unreachable;
return @ptrCast(*gpu.ComputePipeline, procs.deviceCreateComputePipeline.?(
@ptrCast(c.WGPUDevice, device),
@ptrCast(*const c.WGPUComputePipelineDescriptor, descriptor),
));
}
pub inline fn deviceCreateComputePipelineAsync(device: *gpu.Device, descriptor: *const gpu.ComputePipeline.Descriptor, callback: gpu.CreateComputePipelineAsyncCallback, userdata: *anyopaque) void {