From 7121c3c97c3704b360bfc901f50271c973b1b228 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Tue, 26 Jul 2022 20:31:23 -0700 Subject: [PATCH] gpu: validate CommandBuffer methods Signed-off-by: Stephen Gutekanst --- gpu/src/interface.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpu/src/interface.zig b/gpu/src/interface.zig index e5472fbb..8af2abf6 100644 --- a/gpu/src/interface.zig +++ b/gpu/src/interface.zig @@ -43,9 +43,9 @@ pub fn Interface(comptime Impl: type) type { assertDecl(Impl, "bufferUnmap", fn (buffer: gpu.Buffer) callconv(.Inline) void); assertDecl(Impl, "bufferReference", fn (buffer: gpu.Buffer) callconv(.Inline) void); assertDecl(Impl, "bufferRelease", fn (buffer: gpu.Buffer) callconv(.Inline) void); - // assertDecl(Impl, "commandBufferSetLabel", fn (command_buffer: gpu.CommandBuffer, label: [*:0]const u8) callconv(.Inline) void); - // assertDecl(Impl, "commandBufferReference", fn (command_buffer: gpu.CommandBuffer) callconv(.Inline) void); - // assertDecl(Impl, "commandBufferRelease", fn (command_buffer: gpu.CommandBuffer) callconv(.Inline) void); + assertDecl(Impl, "commandBufferSetLabel", fn (command_buffer: gpu.CommandBuffer, label: [*:0]const u8) callconv(.Inline) void); + assertDecl(Impl, "commandBufferReference", fn (command_buffer: gpu.CommandBuffer) callconv(.Inline) void); + assertDecl(Impl, "commandBufferRelease", fn (command_buffer: gpu.CommandBuffer) callconv(.Inline) void); // assertDecl(Impl, "commandEncoderBeginComputePass", fn (command_encoder: gpu.CommandEncoder, descriptor: ?*const gpu.ComputePassDescriptor) callconv(.Inline) gpu.ComputePassEncoder); // assertDecl(Impl, "commandEncoderBeginRenderPass", fn (command_encoder: gpu.CommandEncoder, descriptor: *const gpu.RenderPassDescriptor) callconv(.Inline) gpu.RenderPassEncoder); // assertDecl(Impl, "commandEncoderClearBuffer", fn (command_encoder: gpu.CommandEncoder, buffer: gpu.Buffer, offset: u64, size: u64) callconv(.Inline) void);