1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-13 07:08:50 +01:00

[dxvk] Pass shader stage when binding HUD resources

This commit is contained in:
Philip Rebohle 2022-06-02 19:42:46 +02:00
parent 10eabb34da
commit fe03327ecd
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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);