Fix new compiler DXC changes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user