Move Push Constants buffer index

Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
This commit is contained in:
Isaac Marovitz 2025-04-02 13:39:37 -04:00
parent c96ad61b71
commit 13fb9fd4b9
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1

View file

@ -1687,7 +1687,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
out += "\tconstant Texture3DDescriptorHeap& g_Texture3DDescriptorHeap [[buffer(1)]],\n";
out += "\tconstant TextureCubeDescriptorHeap& g_TextureCubeDescriptorHeap [[buffer(2)]],\n";
out += "\tconstant SamplerDescriptorHeap& g_SamplerDescriptorHeap [[buffer(3)]],\n";
out += "\tconstant PushConstants& g_PushConstants [[buffer(8)]]\n";
out += "\tconstant PushConstants& g_PushConstants [[buffer(4)]]\n";
out += "#else\n";
@ -1705,7 +1705,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
else
{
out += "#ifdef __air__\n";
out += "\tconstant PushConstants& g_PushConstants [[buffer(8)]],\n";
out += "\tconstant PushConstants& g_PushConstants [[buffer(4)]],\n";
out += "\tVertexShaderInput input [[stage_in]]\n";
out += "#else\n";
out += "\tVertexShaderInput input\n";