1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +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) { void HudRenderer::beginFrame(const Rc<DxvkContext>& context, VkExtent2D surfaceSize) {
context->bindResourceSampler(1, m_fontSampler); context->bindResourceSampler(0, m_fontSampler);
context->bindResourceView (1, m_fontView, nullptr); context->bindResourceView (0, m_fontView, nullptr);
m_mode = Mode::RenderNone; m_mode = Mode::RenderNone;
m_surfaceSize = surfaceSize; m_surfaceSize = surfaceSize;
@ -220,7 +220,7 @@ namespace dxvk::hud {
// Two shader resources: Font texture and sampler // Two shader resources: Font texture and sampler
const std::array<DxvkResourceSlot, 1> fsResources = {{ 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( result.vert = device->createShader(

View File

@ -2,8 +2,7 @@
layout(constant_id = 1249) const bool srgbSwapchain = false; layout(constant_id = 1249) const bool srgbSwapchain = false;
layout(set = 0, binding = 0) uniform texture2D s_base; layout(set = 0, binding = 0) uniform sampler2D s_font;
layout(set = 0, binding = 1) uniform sampler2D s_font;
layout(location = 0) in vec2 v_texcoord; layout(location = 0) in vec2 v_texcoord;
layout(location = 1) in vec4 v_color; layout(location = 1) in vec4 v_color;