Always emit output struct init

Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
This commit is contained in:
Isaac Marovitz 2025-03-24 20:05:20 -04:00
parent e851c0baff
commit 04539fdf02
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1

View file

@ -1617,8 +1617,6 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
out += ")\n";
out += "{\n";
#ifdef UNLEASHED_RECOMP
std::string outputName = isPixelShader ? "PixelShaderOutput" : "Interpolators";
out += "#ifdef __air__\n";
@ -1627,6 +1625,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
println("\t{0} output = ({0})0;", outputName);
out += "#endif\n";
#ifdef UNLEASHED_RECOMP
if (hasMtxProjection)
{
specConstantsMask |= SPEC_CONSTANT_REVERSE_Z;