Skip to content

Commit 6831446

Browse files
committed
Move Push Constants buffer index
Signed-off-by: Isaac Marovitz <[email protected]>
1 parent cf49b05 commit 6831446

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

XenosRecomp/shader_recompiler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
16871687
out += "\tconstant Texture3DDescriptorHeap& g_Texture3DDescriptorHeap [[buffer(1)]],\n";
16881688
out += "\tconstant TextureCubeDescriptorHeap& g_TextureCubeDescriptorHeap [[buffer(2)]],\n";
16891689
out += "\tconstant SamplerDescriptorHeap& g_SamplerDescriptorHeap [[buffer(3)]],\n";
1690-
out += "\tconstant PushConstants& g_PushConstants [[buffer(8)]]\n";
1690+
out += "\tconstant PushConstants& g_PushConstants [[buffer(4)]]\n";
16911691

16921692
out += "#else\n";
16931693

@@ -1705,7 +1705,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
17051705
else
17061706
{
17071707
out += "#ifdef __air__\n";
1708-
out += "\tconstant PushConstants& g_PushConstants [[buffer(8)]],\n";
1708+
out += "\tconstant PushConstants& g_PushConstants [[buffer(4)]],\n";
17091709
out += "\tVertexShaderInput input [[stage_in]]\n";
17101710
out += "#else\n";
17111711
out += "\tVertexShaderInput input\n";

0 commit comments

Comments
 (0)