mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 22:58:50 +00:00
GeometryShaderGen: Pass the primitive type and always run the generator regardless of stereoscopy.
This commit is contained in:
parent
b406e4e1f2
commit
aa4242fd9c
8 changed files with 28 additions and 32 deletions
|
@ -186,14 +186,14 @@ void GeometryShaderCache::Shutdown()
|
|||
g_gs_disk_cache.Close();
|
||||
}
|
||||
|
||||
bool GeometryShaderCache::SetShader(u32 components)
|
||||
bool GeometryShaderCache::SetShader(u32 primitive_type)
|
||||
{
|
||||
GeometryShaderUid uid;
|
||||
GetGeometryShaderUid(uid, components, API_D3D);
|
||||
GetGeometryShaderUid(uid, primitive_type, API_D3D);
|
||||
if (g_ActiveConfig.bEnableShaderDebugging)
|
||||
{
|
||||
ShaderCode code;
|
||||
GenerateGeometryShaderCode(code, components, API_D3D);
|
||||
GenerateGeometryShaderCode(code, primitive_type, API_D3D);
|
||||
geometry_uid_checker.AddToIndexAndCheck(code, uid, "Geometry", "g");
|
||||
}
|
||||
|
||||
|
@ -222,7 +222,7 @@ bool GeometryShaderCache::SetShader(u32 components)
|
|||
|
||||
// Need to compile a new shader
|
||||
ShaderCode code;
|
||||
GenerateGeometryShaderCode(code, components, API_D3D);
|
||||
GenerateGeometryShaderCode(code, primitive_type, API_D3D);
|
||||
|
||||
D3DBlob* pbytecode;
|
||||
if (!D3D::CompileGeometryShader(code.GetBuffer(), &pbytecode))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue