Merge pull request #97 from antlilja/master-update

Update intToFloat builtin to floatFromInt
This commit is contained in:
Robin Voetter
2023-06-22 01:27:57 +02:00
committed by GitHub

View File

@@ -243,8 +243,8 @@ fn createCommandBuffers(
const viewport = vk.Viewport{ const viewport = vk.Viewport{
.x = 0, .x = 0,
.y = 0, .y = 0,
.width = @intToFloat(f32, extent.width), .width = @floatFromInt(f32, extent.width),
.height = @intToFloat(f32, extent.height), .height = @floatFromInt(f32, extent.height),
.min_depth = 0, .min_depth = 0,
.max_depth = 1, .max_depth = 1,
}; };