mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-16 16:12:40 +00:00
D3D: Set the geometry shader before every draw call.
And refactor the VertexManager draw call.
This commit is contained in:
parent
7e8f96f0d3
commit
3d9dfad6a2
5 changed files with 22 additions and 39 deletions
|
@ -1105,13 +1105,14 @@ void Renderer::ApplyState(bool bUseDstAlpha)
|
|||
}
|
||||
|
||||
ID3D11Buffer* vertexConstants = VertexShaderCache::GetConstantBuffer();
|
||||
ID3D11Buffer* pixelConstants = PixelShaderCache::GetConstantBuffer();
|
||||
|
||||
D3D::stateman->SetPixelConstants(pixelConstants, g_ActiveConfig.bEnablePixelLighting ? vertexConstants : nullptr);
|
||||
D3D::stateman->SetPixelConstants(PixelShaderCache::GetConstantBuffer(), g_ActiveConfig.bEnablePixelLighting ? vertexConstants : nullptr);
|
||||
D3D::stateman->SetVertexConstants(vertexConstants);
|
||||
D3D::stateman->SetGeometryConstants(GeometryShaderCache::GetConstantBuffer());
|
||||
|
||||
D3D::stateman->SetPixelShader(PixelShaderCache::GetActiveShader());
|
||||
D3D::stateman->SetVertexShader(VertexShaderCache::GetActiveShader());
|
||||
D3D::stateman->SetGeometryShader(GeometryShaderCache::GetActiveShader());
|
||||
}
|
||||
|
||||
void Renderer::RestoreState()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue