gpu: implement Dawn shaderModuleReference

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 15:27:21 -07:00 committed by Stephen Gutekanst
parent 3c77135618
commit 53db9abe9f

View file

@ -1066,8 +1066,7 @@ pub const Interface = gpu.Interface(struct {
} }
pub inline fn shaderModuleReference(shader_module: *gpu.ShaderModule) void { pub inline fn shaderModuleReference(shader_module: *gpu.ShaderModule) void {
_ = shader_module; procs.shaderModuleReference.?(@ptrCast(c.WGPUShaderModule, shader_module));
unreachable;
} }
pub inline fn shaderModuleRelease(shader_module: *gpu.ShaderModule) void { pub inline fn shaderModuleRelease(shader_module: *gpu.ShaderModule) void {