diff --git a/src/dxvk/hud/dxvk_hud_renderer.cpp b/src/dxvk/hud/dxvk_hud_renderer.cpp index 9beefb36f..faff824f5 100644 --- a/src/dxvk/hud/dxvk_hud_renderer.cpp +++ b/src/dxvk/hud/dxvk_hud_renderer.cpp @@ -28,8 +28,8 @@ namespace dxvk::hud { void HudRenderer::beginFrame(const Rc& context, VkExtent2D surfaceSize) { - context->bindResourceSampler(1, m_fontSampler); - context->bindResourceView (1, m_fontView, nullptr); + context->bindResourceSampler(0, m_fontSampler); + context->bindResourceView (0, m_fontView, nullptr); m_mode = Mode::RenderNone; m_surfaceSize = surfaceSize; @@ -220,7 +220,7 @@ namespace dxvk::hud { // Two shader resources: Font texture and sampler const std::array fsResources = {{ - { 1, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, VK_IMAGE_VIEW_TYPE_2D }, + { 0, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, VK_IMAGE_VIEW_TYPE_2D }, }}; result.vert = device->createShader( @@ -360,4 +360,4 @@ namespace dxvk::hud { m_charMap.at(g_hudFont.glyphs[i].codePoint) = i; } -} \ No newline at end of file +} diff --git a/src/dxvk/hud/shaders/hud_text_frag.frag b/src/dxvk/hud/shaders/hud_text_frag.frag index bfd5590f4..06fe6c68c 100644 --- a/src/dxvk/hud/shaders/hud_text_frag.frag +++ b/src/dxvk/hud/shaders/hud_text_frag.frag @@ -2,8 +2,7 @@ layout(constant_id = 1249) const bool srgbSwapchain = false; -layout(set = 0, binding = 0) uniform texture2D s_base; -layout(set = 0, binding = 1) uniform sampler2D s_font; +layout(set = 0, binding = 0) uniform sampler2D s_font; layout(location = 0) in vec2 v_texcoord; layout(location = 1) in vec4 v_color; @@ -36,4 +35,4 @@ void main() { if (!srgbSwapchain) o_color.rgb = linearToSrgb(o_color.rgb); -} \ No newline at end of file +}