Handle initialising a DXIL constant struct to NULL

It is a nop because ShaderVariable starts initialised to 0
This commit is contained in:
Jake Turner
2025-04-22 12:37:28 +01:00
parent eeac056816
commit 4ead1e4423
2 changed files with 6 additions and 1 deletions
@@ -1057,6 +1057,11 @@ static bool ConvertDXILConstantToShaderVariable(const Constant *constant, Shader
}
return true;
}
else if(constant->isNULL())
{
// Nothing to do because Shader Variables created initialised to zero
return true;
}
return false;
}
@@ -104,7 +104,7 @@ void main(uint3 inTid : SV_DispatchThreadID)
tid = inTid;
float4 data = 0.0f.xxxx;
uint id = WaveGetLaneIndex();
gsmUint4[id] = id;
gsmUint4[id] = id.xxxx;
SetOutput(data);
if(IsTest(0))