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