From 3f08d1b549358ad10afc954bc822b1426af8c05b Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Tue, 26 Jul 2022 20:43:38 -0700 Subject: [PATCH] gpu: validate Sampler methods Signed-off-by: Stephen Gutekanst --- gpu/src/interface.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gpu/src/interface.zig b/gpu/src/interface.zig index 3e93b954..98caa3f8 100644 --- a/gpu/src/interface.zig +++ b/gpu/src/interface.zig @@ -191,10 +191,10 @@ pub fn Interface(comptime Impl: type) type { assertDecl(Impl, "samplerSetLabel", fn (sampler: gpu.Sampler, label: [*:0]const u8) callconv(.Inline) void); assertDecl(Impl, "samplerReference", fn (sampler: gpu.Sampler) callconv(.Inline) void); assertDecl(Impl, "samplerRelease", fn (sampler: gpu.Sampler) callconv(.Inline) void); - // assertDecl(Impl, "shaderModuleGetCompilationInfo", fn (shader_module: gpu.ShaderModule, callback: gpu.CompilationInfoCallback, userdata: *anyopaque) callconv(.Inline) void); - // assertDecl(Impl, "shaderModuleSetLabel", fn (shader_module: gpu.ShaderModule, label: [*:0]const u8) callconv(.Inline) void); - // assertDecl(Impl, "shaderModuleReference", fn (shader_module: gpu.ShaderModule) callconv(.Inline) void); - // assertDecl(Impl, "shaderModuleRelease", fn (shader_module: gpu.ShaderModule) callconv(.Inline) void); + assertDecl(Impl, "shaderModuleGetCompilationInfo", fn (shader_module: gpu.ShaderModule, callback: gpu.CompilationInfoCallback, userdata: *anyopaque) callconv(.Inline) void); + assertDecl(Impl, "shaderModuleSetLabel", fn (shader_module: gpu.ShaderModule, label: [*:0]const u8) callconv(.Inline) void); + assertDecl(Impl, "shaderModuleReference", fn (shader_module: gpu.ShaderModule) callconv(.Inline) void); + assertDecl(Impl, "shaderModuleRelease", fn (shader_module: gpu.ShaderModule) callconv(.Inline) void); // assertDecl(Impl, "surfaceReference", fn (surface: gpu.Surface) callconv(.Inline) void); // assertDecl(Impl, "surfaceRelease", fn (surface: gpu.Surface) callconv(.Inline) void); // assertDecl(Impl, "swapChainConfigure", fn (swap_chain: gpu.SwapChain, format: gpu.TextureFormat, allowed_usage: gpu.TextureUsageFlags, width: u32, height: u32) callconv(.Inline) void);