diff options
| author | 2021-07-08 21:45:01 -0400 | |
|---|---|---|
| committer | 2021-07-08 21:45:01 -0400 | |
| commit | 8284658bac04837756287d2f6b36485c8a2833dc (patch) | |
| tree | 38c2ee0bae55ed323cc7fd501acd8baea1dfc6f7 /src/video_core/renderer_vulkan | |
| parent | configure_audio: Use u8 for volume value (diff) | |
| download | yuzu-8284658bac04837756287d2f6b36485c8a2833dc.tar.gz yuzu-8284658bac04837756287d2f6b36485c8a2833dc.tar.xz yuzu-8284658bac04837756287d2f6b36485c8a2833dc.zip | |
configure_graphics: Use u8 for bg_color values
Diffstat (limited to 'src/video_core/renderer_vulkan')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_blit_screen.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_blit_screen.cpp b/src/video_core/renderer_vulkan/vk_blit_screen.cpp index a1a32aabe..363134129 100644 --- a/src/video_core/renderer_vulkan/vk_blit_screen.cpp +++ b/src/video_core/renderer_vulkan/vk_blit_screen.cpp | |||
| @@ -225,8 +225,11 @@ VkSemaphore VKBlitScreen::Draw(const Tegra::FramebufferConfig& framebuffer, bool | |||
| 225 | descriptor_set = descriptor_sets[image_index], buffer = *buffer, | 225 | descriptor_set = descriptor_sets[image_index], buffer = *buffer, |
| 226 | size = swapchain.GetSize(), pipeline = *pipeline, | 226 | size = swapchain.GetSize(), pipeline = *pipeline, |
| 227 | layout = *pipeline_layout](vk::CommandBuffer cmdbuf) { | 227 | layout = *pipeline_layout](vk::CommandBuffer cmdbuf) { |
| 228 | const f32 bg_red = Settings::values.bg_red.GetValue() / 255.0f; | ||
| 229 | const f32 bg_green = Settings::values.bg_green.GetValue() / 255.0f; | ||
| 230 | const f32 bg_blue = Settings::values.bg_blue.GetValue() / 255.0f; | ||
| 228 | const VkClearValue clear_color{ | 231 | const VkClearValue clear_color{ |
| 229 | .color = {.float32 = {0.0f, 0.0f, 0.0f, 0.0f}}, | 232 | .color = {.float32 = {bg_red, bg_green, bg_blue, 1.0f}}, |
| 230 | }; | 233 | }; |
| 231 | const VkRenderPassBeginInfo renderpass_bi{ | 234 | const VkRenderPassBeginInfo renderpass_bi{ |
| 232 | .sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO, | 235 | .sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO, |