diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-08-04 06:30:16 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:29 +0100 |
commit | 65781f88f80a322b08241dc7dbceceed83434e30 (patch) | |
tree | 62259c8c0b11d6623af07b343b82cfdfbf23f428 /src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | |
parent | TextureCache: Fix Buffer Views Scaling. (diff) | |
download | yuzu-65781f88f80a322b08241dc7dbceceed83434e30.tar yuzu-65781f88f80a322b08241dc7dbceceed83434e30.tar.gz yuzu-65781f88f80a322b08241dc7dbceceed83434e30.tar.bz2 yuzu-65781f88f80a322b08241dc7dbceceed83434e30.tar.lz yuzu-65781f88f80a322b08241dc7dbceceed83434e30.tar.xz yuzu-65781f88f80a322b08241dc7dbceceed83434e30.tar.zst yuzu-65781f88f80a322b08241dc7dbceceed83434e30.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp index 5ad1180bb..f08e9e840 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp @@ -483,8 +483,9 @@ void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling) { cmdbuf.PushConstants(*pipeline_layout, VK_SHADER_STAGE_ALL_GRAPHICS, 0, sizeof(scale_down_factor), &scale_down_factor); } - cmdbuf.PushConstants(*pipeline_layout, VK_SHADER_STAGE_ALL_GRAPHICS, sizeof(f32), - sizeof(rescaling_data), rescaling_data.data()); + cmdbuf.PushConstants(*pipeline_layout, VK_SHADER_STAGE_ALL_GRAPHICS, + RESCALING_PUSH_CONSTANT_WORDS_OFFSET, sizeof(rescaling_data), + rescaling_data.data()); if (!descriptor_set_layout) { return; } |