From d05864cbcbeaeeec75e05e3745f6ef6845f807b7 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 2 Jun 2022 19:40:47 +0200 Subject: [PATCH] [d3d11] Pass shader stage for binding video processor resources --- src/d3d11/d3d11_video.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/d3d11/d3d11_video.cpp b/src/d3d11/d3d11_video.cpp index 9ad9c6a8..ccf08c1a 100644 --- a/src/d3d11/d3d11_video.cpp +++ b/src/d3d11/d3d11_video.cpp @@ -1199,7 +1199,7 @@ namespace dxvk { ctx->bindRenderTargets(rt); ctx->bindShader(VK_SHADER_STAGE_VERTEX_BIT, m_vs); ctx->bindShader(VK_SHADER_STAGE_FRAGMENT_BIT, m_fs); - ctx->bindResourceBuffer(0, DxvkBufferSlice(m_ubo)); + ctx->bindResourceBuffer(VK_SHADER_STAGE_FRAGMENT_BIT, 0, DxvkBufferSlice(m_ubo)); DxvkInputAssemblyState iaState; iaState.primitiveTopology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST; @@ -1292,10 +1292,10 @@ namespace dxvk { ctx->invalidateBuffer(m_ubo, uboSlice); ctx->setViewports(1, &viewport, &scissor); - ctx->bindResourceSampler(1, m_sampler); + ctx->bindResourceSampler(VK_SHADER_STAGE_FRAGMENT_BIT, 1, m_sampler); for (uint32_t i = 0; i < cViews.size(); i++) - ctx->bindResourceView(2 + i, cViews[i], nullptr); + ctx->bindResourceView(VK_SHADER_STAGE_FRAGMENT_BIT, 2 + i, cViews[i], nullptr); ctx->draw(3, 1, 0, 0); });