From 53f1434ffff411583d605b91381ce1acc71f92db Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Mon, 25 Jul 2022 04:16:10 -0700 Subject: [PATCH] gpu: expand wgpuShaderModule* TODOs Signed-off-by: Stephen Gutekanst --- gpu/TODO-webgpu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 4af83408..f1a19249 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -673,7 +673,9 @@ assertDecl(Impl, "samplerReference", fn (sampler: gpu.Sampler) callconv(.Inline) export fn wgpuSamplerRelease(sampler: gpu.Sampler) void { assertDecl(Impl, "samplerRelease", fn (sampler: gpu.Sampler) callconv(.Inline) void); -WGPU_EXPORT void wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void * userdata); +// WGPU_EXPORT void wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void * userdata); +export fn wgpuShaderModuleGetCompilationInfo(shader_module: gpu.ShaderModule, callback: gpu.CompilationInfoCallback, userdata: *anyopaque) void { +assertDecl(Impl, "shaderModuleGetCompilationInfo", fn (shader_module: gpu.ShaderModule, callback: gpu.CompilationInfoCallback, userdata: *anyopaque) callconv(.Inline) void); // WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, char const * label); export fn wgpuShaderModuleSetLabel(shader_module: gpu.ShaderModule, label: [*:0]const u8) void {