From 794826f34ab871e7e8012559f40a4729046c219d Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 13 Aug 2023 09:39:00 -0700 Subject: [PATCH] gfx2d: update to latest mach-gpu API Signed-off-by: Stephen Gutekanst --- src/gfx2d/Sprite2D.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gfx2d/Sprite2D.zig b/src/gfx2d/Sprite2D.zig index a9d7af86..5b16ee02 100644 --- a/src/gfx2d/Sprite2D.zig +++ b/src/gfx2d/Sprite2D.zig @@ -63,7 +63,7 @@ pub fn machSprite2DInit(adapter: anytype) !void { const uniform_buffer = device.createBuffer(&.{ .usage = .{ .copy_dst = true, .uniform = true }, .size = @sizeOf(Uniforms), - .mapped_at_creation = false, + .mapped_at_creation = .false, }); // Create a sampler with linear filtering for smooth interpolation. @@ -77,17 +77,17 @@ pub fn machSprite2DInit(adapter: anytype) !void { const sprite_transforms = device.createBuffer(&.{ .usage = .{ .storage = true, .copy_dst = true }, .size = @sizeOf(Mat4x4) * sprite_buffer_cap, - .mapped_at_creation = false, + .mapped_at_creation = .false, }); const sprite_uv_transforms = device.createBuffer(&.{ .usage = .{ .storage = true, .copy_dst = true }, .size = @sizeOf(Mat3x3) * sprite_buffer_cap, - .mapped_at_creation = false, + .mapped_at_creation = .false, }); const sprite_sizes = device.createBuffer(&.{ .usage = .{ .storage = true, .copy_dst = true }, .size = @sizeOf(Vec2) * sprite_buffer_cap, - .mapped_at_creation = false, + .mapped_at_creation = .false, }); const bind_group_layout = device.createBindGroupLayout(