mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-07-03 12:03:35 +03:00
TMP / Fixed vulkan_frame.cpp
This commit is contained in:
@ -11,8 +11,8 @@
|
||||
namespace progressia::desktop {
|
||||
|
||||
Frame::Frame(Vulkan &vulkan)
|
||||
: vulkan(vulkan),
|
||||
commandBuffer(vulkan.getCommandPool().allocateMultiUse()) {
|
||||
: vulkan(vulkan), commandBuffer(vulkan.getCommandPool().allocateMultiUse()),
|
||||
imageAvailableSemaphore(), renderFinishedSemaphore(), inFlightFence() {
|
||||
|
||||
VkSemaphoreCreateInfo semaphoreInfo{};
|
||||
semaphoreInfo.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO;
|
||||
@ -97,12 +97,12 @@ bool Frame::startRender() {
|
||||
vulkan.getPipeline().getVk());
|
||||
|
||||
VkViewport viewport{};
|
||||
viewport.x = 0.0f;
|
||||
viewport.y = 0.0f;
|
||||
viewport.x = 0.0F;
|
||||
viewport.y = 0.0F;
|
||||
viewport.width = (float)extent.width;
|
||||
viewport.height = (float)extent.height;
|
||||
viewport.minDepth = 0.0f;
|
||||
viewport.maxDepth = 1.0f;
|
||||
viewport.minDepth = 0.0F;
|
||||
viewport.maxDepth = 1.0F;
|
||||
vkCmdSetViewport(commandBuffer, 0, 1, &viewport);
|
||||
|
||||
VkRect2D scissor{};
|
||||
|
Reference in New Issue
Block a user