gpu: implement Dawn deviceCreateRenderPipeline
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9a9a1c12dc
commit
b5a2631fdf
1 changed files with 4 additions and 3 deletions
|
|
@ -475,9 +475,10 @@ pub const Interface = gpu.Interface(struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceCreateRenderPipeline(device: *gpu.Device, descriptor: *const gpu.RenderPipeline.Descriptor) *gpu.RenderPipeline {
|
pub inline fn deviceCreateRenderPipeline(device: *gpu.Device, descriptor: *const gpu.RenderPipeline.Descriptor) *gpu.RenderPipeline {
|
||||||
_ = device;
|
return @ptrCast(*gpu.RenderPipeline, procs.deviceCreateRenderPipeline.?(
|
||||||
_ = descriptor;
|
@ptrCast(c.WGPUDevice, device),
|
||||||
unreachable;
|
@ptrCast(*const c.WGPURenderPipelineDescriptor, descriptor),
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue