gpu: implement Dawn computePipelineReference

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 15:19:57 -07:00 committed by Stephen Gutekanst
parent abe4f6b094
commit babe2ed373

View file

@ -397,13 +397,11 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn computePipelineReference(compute_pipeline: *gpu.ComputePipeline) void {
_ = compute_pipeline;
unreachable;
procs.computePipelineReference.?(@ptrCast(c.WGPUComputePipeline, compute_pipeline));
}
pub inline fn computePipelineRelease(compute_pipeline: *gpu.ComputePipeline) void {
_ = compute_pipeline;
unreachable;
procs.computePipelineRelease.?(@ptrCast(c.WGPUComputePipeline, compute_pipeline));
}
pub inline fn deviceCreateBindGroup(device: *gpu.Device, descriptor: *const gpu.BindGroup.Descriptor) *gpu.BindGroup {