From b478020452cc84ce0280ca05232e79f65e0d5c9b Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Tue, 26 Jul 2022 20:42:05 -0700 Subject: [PATCH] gpu: validate Instance 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 0b2c7bed..2e6623cc 100644 --- a/gpu/src/interface.zig +++ b/gpu/src/interface.zig @@ -122,10 +122,10 @@ pub fn Interface(comptime Impl: type) type { assertDecl(Impl, "externalTextureSetLabel", fn (external_texture: gpu.ExternalTexture, label: [*:0]const u8) callconv(.Inline) void); assertDecl(Impl, "externalTextureReference", fn (external_texture: gpu.ExternalTexture) callconv(.Inline) void); assertDecl(Impl, "externalTextureRelease", fn (external_texture: gpu.ExternalTexture) callconv(.Inline) void); - // assertDecl(Impl, "instanceCreateSurface", fn (instance: gpu.Instance, descriptor: *const gpu.SurfaceDescriptor) callconv(.Inline) gpu.Surface); - // assertDecl(Impl, "instanceRequestAdapter", fn (instance: gpu.Instance, options: *const gpu.RequestAdapterOptions, callback: gpu.RequestAdapterCallback, userdata: *anyopaque) callconv(.Inline) void); - // assertDecl(Impl, "instanceReference", fn (instance: gpu.Instance) callconv(.Inline) void); - // assertDecl(Impl, "instanceRelease", fn (instance: gpu.Instance) callconv(.Inline) void); + assertDecl(Impl, "instanceCreateSurface", fn (instance: gpu.Instance, descriptor: *const gpu.SurfaceDescriptor) callconv(.Inline) gpu.Surface); + assertDecl(Impl, "instanceRequestAdapter", fn (instance: gpu.Instance, options: *const gpu.RequestAdapterOptions, callback: gpu.RequestAdapterCallback, userdata: *anyopaque) callconv(.Inline) void); + assertDecl(Impl, "instanceReference", fn (instance: gpu.Instance) callconv(.Inline) void); + assertDecl(Impl, "instanceRelease", fn (instance: gpu.Instance) callconv(.Inline) void); // assertDecl(Impl, "pipelineLayoutSetLabel", fn (pipeline_layout: gpu.PipelineLayout, label: [*:0]const u8) callconv(.Inline) void); // assertDecl(Impl, "pipelineLayoutReference", fn (pipeline_layout: gpu.PipelineLayout) callconv(.Inline) void); // assertDecl(Impl, "pipelineLayoutRelease", fn (pipeline_layout: gpu.PipelineLayout) callconv(.Inline) void);