From 2fbf17005c3b8cc6b7237734a8f17a3c1b220092 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 30 Jul 2022 18:44:08 -0700 Subject: [PATCH] gpu: implement Dawn renderPassEncoderSetViewport Signed-off-by: Stephen Gutekanst --- gpu/src/dawn_impl.zig | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/gpu/src/dawn_impl.zig b/gpu/src/dawn_impl.zig index 5df8fef4..7fc5b22b 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -1012,14 +1012,15 @@ pub const Interface = gpu.Interface(struct { } pub inline fn renderPassEncoderSetViewport(render_pass_encoder: *gpu.RenderPassEncoder, x: f32, y: f32, width: f32, height: f32, min_depth: f32, max_depth: f32) void { - _ = render_pass_encoder; - _ = x; - _ = y; - _ = width; - _ = height; - _ = min_depth; - _ = max_depth; - unreachable; + procs.renderPassEncoderSetViewport.?( + @ptrCast(c.WGPURenderPassEncoder, render_pass_encoder), + x, + y, + width, + height, + min_depth, + max_depth, + ); } pub inline fn renderPassEncoderWriteTimestamp(render_pass_encoder: *gpu.RenderPassEncoder, query_set: *gpu.QuerySet, query_index: u32) void {