diff options
author | Frederico Linhares <fred@linhares.blue> | 2022-10-10 16:13:12 -0300 |
---|---|---|
committer | Frederico Linhares <fred@linhares.blue> | 2022-10-10 16:15:09 -0300 |
commit | 9d6d723846d737b0bcc6b51afefcf313f723dcd0 (patch) | |
tree | d4b6ea5556fc9c56e28ea01ffe8375bee0a464bb /src/vk/graphics_pipeline_3d.cpp | |
parent | 63d7d305da643ec20fed3cdd60c4daec29272c41 (diff) |
feat Move configuration from YAML file to game
Diffstat (limited to 'src/vk/graphics_pipeline_3d.cpp')
-rw-r--r-- | src/vk/graphics_pipeline_3d.cpp | 14 |
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 = |