From 4415d96b612272a119b026ae564c8ef4c01f100a Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Tue, 26 Jul 2022 20:44:01 -0700 Subject: [PATCH] gpu: validate Surface methods Signed-off-by: Stephen Gutekanst --- gpu/src/interface.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpu/src/interface.zig b/gpu/src/interface.zig index 98caa3f8..8e93c46b 100644 --- a/gpu/src/interface.zig +++ b/gpu/src/interface.zig @@ -195,8 +195,8 @@ pub fn Interface(comptime Impl: type) type { 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, "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); // assertDecl(Impl, "swapChainGetCurrentTextureView", fn (swap_chain: gpu.SwapChain) callconv(.Inline) gpu.TextureView); // assertDecl(Impl, "swapChainPresent", fn (swap_chain: gpu.SwapChain) callconv(.Inline) void);