From b916dc04e53cbb38ba160ff7fd30e6c496f9756b Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 9 Jan 2023 14:55:10 +0100 Subject: [PATCH] [dxbc] Fill in patch vertex count info --- src/dxbc/dxbc_compiler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dxbc/dxbc_compiler.cpp b/src/dxbc/dxbc_compiler.cpp index ea14d620..110f9b0d 100644 --- a/src/dxbc/dxbc_compiler.cpp +++ b/src/dxbc/dxbc_compiler.cpp @@ -258,6 +258,9 @@ namespace dxvk { info.uniformSize = m_immConstData.size(); info.uniformData = m_immConstData.data(); + if (m_programInfo.type() == DxbcProgramType::HullShader) + info.patchVertexCount = m_hs.vertexCountIn; + if (m_programInfo.type() == DxbcProgramType::PixelShader && m_ps.pushConstantId) info.pushConstSize = sizeof(DxbcPushConstants);