1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[hud] remove unused texture

This commit is contained in:
Georg Lehmann 2020-04-08 19:23:53 +02:00 committed by Philip Rebohle
parent 3f4ffdfba8
commit e95e4ca225
2 changed files with 6 additions and 7 deletions

View File

@ -28,8 +28,8 @@ namespace dxvk::hud {
void HudRenderer::beginFrame(const Rc<DxvkContext>& 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<DxvkResourceSlot, 1> 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;
}
}
}

View File

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