gpu: implement Dawn deviceCreateComputePipelineAsync
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
a6daeff716
commit
eb038120dd
1 changed files with 6 additions and 5 deletions
|
|
@ -446,11 +446,12 @@ pub const Interface = gpu.Interface(struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceCreateComputePipelineAsync(device: *gpu.Device, descriptor: *const gpu.ComputePipeline.Descriptor, callback: gpu.CreateComputePipelineAsyncCallback, userdata: *anyopaque) void {
|
pub inline fn deviceCreateComputePipelineAsync(device: *gpu.Device, descriptor: *const gpu.ComputePipeline.Descriptor, callback: gpu.CreateComputePipelineAsyncCallback, userdata: *anyopaque) void {
|
||||||
_ = device;
|
procs.deviceCreateComputePipelineAsync.?(
|
||||||
_ = descriptor;
|
@ptrCast(c.WGPUDevice, device),
|
||||||
_ = callback;
|
@ptrCast(*const c.WGPUComputePipelineDescriptor, descriptor),
|
||||||
_ = userdata;
|
@ptrCast(c.WGPUCreateComputePipelineAsyncCallback, callback),
|
||||||
unreachable;
|
userdata,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceCreateErrorBuffer(device: *gpu.Device) *gpu.Buffer {
|
pub inline fn deviceCreateErrorBuffer(device: *gpu.Device) *gpu.Buffer {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue