forked from mirror/vulkan-zig
Merge pull request #97 from antlilja/master-update
Update intToFloat builtin to floatFromInt
This commit is contained in:
@@ -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,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user