Fix new compiler DXC changes

This commit is contained in:
Wojtek Figat
2025-11-18 05:42:02 -08:00
parent 1e4f96486f
commit c437daf9be
3 changed files with 5 additions and 3 deletions

View File

@@ -630,7 +630,9 @@ void GPUContextDX12::flushPS()
LOG(Error, "Missing Vertex Layout (not assigned to GPUBuffer). Vertex Shader won't read valid data resulting incorrect visuals.");
}
#endif
_commandList->SetPipelineState(_currentState->GetState(_rtDepth, _rtCount, _rtHandles, _vertexLayout));
ID3D12PipelineState* pso = _currentState->GetState(_rtDepth, _rtCount, _rtHandles, _vertexLayout);
ASSERT(pso);
_commandList->SetPipelineState(pso);
if (_primitiveTopology != _currentState->PrimitiveTopology)
{
_primitiveTopology = _currentState->PrimitiveTopology;

View File

@@ -222,7 +222,7 @@ bool ShaderCompilerDX::CompileShader(ShaderFunctionMeta& meta, WritePermutationD
argsFull.Add(TEXT("-D"));
argsFull.Add(*d);
}
GetArgs(argsFull);
GetArgs(meta, argsFull);
// Compile
ComPtr<IDxcResult> results;

View File

@@ -32,7 +32,7 @@ public:
~ShaderCompilerDX();
protected:
virtual void GetArgs(Array<const Char*, InlinedAllocation<250>> args)
virtual void GetArgs(ShaderFunctionMeta& meta, Array<const Char*, InlinedAllocation<250>>& args)
{
}