gpu: implement Dawn shaderModuleGetCompilationInfo

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 19:15:37 -07:00 committed by Stephen Gutekanst
parent 9e61a4b214
commit 57997bdb39

View file

@ -1080,10 +1080,11 @@ pub const Interface = gpu.Interface(struct {
} }
pub inline fn shaderModuleGetCompilationInfo(shader_module: *gpu.ShaderModule, callback: gpu.CompilationInfoCallback, userdata: *anyopaque) void { pub inline fn shaderModuleGetCompilationInfo(shader_module: *gpu.ShaderModule, callback: gpu.CompilationInfoCallback, userdata: *anyopaque) void {
_ = shader_module; procs.shaderModuleGetCompilationInfo.?(
_ = callback; @ptrCast(c.WGPUShaderModule, shader_module),
_ = userdata; @ptrCast(c.WGPUCompilationInfoCallback, callback),
unreachable; userdata,
);
} }
pub inline fn shaderModuleSetLabel(shader_module: *gpu.ShaderModule, label: [*:0]const u8) void { pub inline fn shaderModuleSetLabel(shader_module: *gpu.ShaderModule, label: [*:0]const u8) void {