summaryrefslogtreecommitdiff
path: root/src/vk/graphics_pipeline_3d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vk/graphics_pipeline_3d.cpp')
-rw-r--r--src/vk/graphics_pipeline_3d.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/vk/graphics_pipeline_3d.cpp b/src/vk/graphics_pipeline_3d.cpp
index f3a54e7..f08e43a 100644
--- a/src/vk/graphics_pipeline_3d.cpp
+++ b/src/vk/graphics_pipeline_3d.cpp
@@ -187,8 +187,8 @@ load_depth_image(void *obj)
auto self = static_cast<VK::GraphicsPipeline3D*>(obj);
VkExtent3D extent3d{};
- extent3d.width = cg_core.screen_width;
- extent3d.height = cg_core.screen_height;
+ extent3d.width = cg_core.display_width;
+ extent3d.height = cg_core.display_height;
extent3d.depth = 1;
try
@@ -273,8 +273,8 @@ load_framebuffer(void *obj)
cg_core.vk_graphics_pipeline_3d_layout->render_pass;
framebuffer_info.attachmentCount = attachments.size();
framebuffer_info.pAttachments = attachments.data();
- framebuffer_info.width = cg_core.screen_width;
- framebuffer_info.height = cg_core.screen_height;
+ framebuffer_info.width = cg_core.display_width;
+ framebuffer_info.height = cg_core.display_height;
framebuffer_info.layers = 1;
@@ -371,14 +371,14 @@ load_pipeline(void *obj)
VkViewport viewport = {};
viewport.x = 0;
viewport.y = 0;
- viewport.width = cg_core.screen_width;
- viewport.height = cg_core.screen_height;
+ viewport.width = cg_core.display_width;
+ viewport.height = cg_core.display_height;
viewport.minDepth = 0.0f;
viewport.maxDepth = 1.0f;
VkRect2D scissor = {};
scissor.offset = {0, 0};
- scissor.extent = {cg_core.screen_width, cg_core.screen_height};
+ scissor.extent = {cg_core.display_width, cg_core.display_height};
VkPipelineViewportStateCreateInfo viewport_state = {};
viewport_state.sType =