From fe03327ecd9ab02b4378ecc89944d5478c23ee7b Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 2 Jun 2022 19:42:46 +0200 Subject: [PATCH] [dxvk] Pass shader stage when binding HUD resources --- src/dxvk/dxvk_swapchain_blitter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dxvk/dxvk_swapchain_blitter.cpp b/src/dxvk/dxvk_swapchain_blitter.cpp index 2d0bc840..37ea0e73 100644 --- a/src/dxvk/dxvk_swapchain_blitter.cpp +++ b/src/dxvk/dxvk_swapchain_blitter.cpp @@ -191,11 +191,11 @@ namespace dxvk { else ctx->clearRenderTarget(dstView, VK_IMAGE_ASPECT_COLOR_BIT, VkClearValue()); - ctx->bindResourceSampler(BindingIds::Image, m_samplerPresent); - ctx->bindResourceSampler(BindingIds::Gamma, m_samplerGamma); + ctx->bindResourceSampler(VK_SHADER_STAGE_FRAGMENT_BIT, BindingIds::Image, m_samplerPresent); + ctx->bindResourceSampler(VK_SHADER_STAGE_FRAGMENT_BIT, BindingIds::Gamma, m_samplerGamma); - ctx->bindResourceView(BindingIds::Image, srcView, nullptr); - ctx->bindResourceView(BindingIds::Gamma, m_gammaView, nullptr); + ctx->bindResourceView(VK_SHADER_STAGE_FRAGMENT_BIT, BindingIds::Image, srcView, nullptr); + ctx->bindResourceView(VK_SHADER_STAGE_FRAGMENT_BIT, BindingIds::Gamma, m_gammaView, nullptr); ctx->bindShader(VK_SHADER_STAGE_VERTEX_BIT, m_vs); ctx->bindShader(VK_SHADER_STAGE_FRAGMENT_BIT, fs);