gpu: implement Dawn deviceCreateRenderPipeline

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 17:18:09 -07:00 committed by Stephen Gutekanst
parent 9a9a1c12dc
commit b5a2631fdf

View file

@ -475,9 +475,10 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn deviceCreateRenderPipeline(device: *gpu.Device, descriptor: *const gpu.RenderPipeline.Descriptor) *gpu.RenderPipeline {
_ = device;
_ = descriptor;
unreachable;
return @ptrCast(*gpu.RenderPipeline, procs.deviceCreateRenderPipeline.?(
@ptrCast(c.WGPUDevice, device),
@ptrCast(*const c.WGPURenderPipelineDescriptor, descriptor),
));
}
pub inline fn deviceCreateRenderPipelineAsync(device: *gpu.Device, descriptor: *const gpu.RenderPipeline.Descriptor, callback: gpu.CreateRenderPipelineAsyncCallback, userdata: *anyopaque) void {