gpu: implement Dawn deviceCreateComputePipeline
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
0afe30b3f2
commit
b5880aca8c
1 changed files with 4 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue