Update intToFloat builtin to floatFromInt

This commit is contained in:
antlilja
2023-06-22 00:32:12 +02:00
parent ab10325893
commit 8a0be4f5de

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,
}; };