diff options
| author | 2021-08-04 00:30:16 -0400 | |
|---|---|---|
| committer | 2021-11-16 22:11:29 +0100 | |
| commit | dc28284437c7f99baa98a242f4713a1ab94418c8 (patch) | |
| tree | 466ca4e32f201dd7ec167a75de748390ff491ba5 /src/video_core/renderer_vulkan | |
| parent | shader: Properly scale image reads and add GL SPIR-V support (diff) | |
| download | yuzu-dc28284437c7f99baa98a242f4713a1ab94418c8.tar.gz yuzu-dc28284437c7f99baa98a242f4713a1ab94418c8.tar.xz yuzu-dc28284437c7f99baa98a242f4713a1ab94418c8.zip | |
emit_spirv: Fix RescalingLayout alignment
Diffstat (limited to 'src/video_core/renderer_vulkan')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp index c29bab678..5ad1180bb 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | |||
| @@ -479,7 +479,7 @@ void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling) { | |||
| 479 | } | 479 | } |
| 480 | if (update_rescaling) { | 480 | if (update_rescaling) { |
| 481 | const f32 config_down_factor{Settings::values.resolution_info.down_factor}; | 481 | const f32 config_down_factor{Settings::values.resolution_info.down_factor}; |
| 482 | const float scale_down_factor{is_rescaling ? config_down_factor : 1.0f}; | 482 | const f32 scale_down_factor{is_rescaling ? config_down_factor : 1.0f}; |
| 483 | cmdbuf.PushConstants(*pipeline_layout, VK_SHADER_STAGE_ALL_GRAPHICS, 0, | 483 | cmdbuf.PushConstants(*pipeline_layout, VK_SHADER_STAGE_ALL_GRAPHICS, 0, |
| 484 | sizeof(scale_down_factor), &scale_down_factor); | 484 | sizeof(scale_down_factor), &scale_down_factor); |
| 485 | } | 485 | } |