mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
VideoCommon: return code/uid from shader gens
rather than passing in non-const references
This commit is contained in:
parent
c04358fbe2
commit
71d1eb3c31
10 changed files with 48 additions and 60 deletions
|
@ -186,12 +186,10 @@ void VertexShaderCache::Shutdown()
|
|||
|
||||
bool VertexShaderCache::SetShader()
|
||||
{
|
||||
VertexShaderUid uid;
|
||||
GetVertexShaderUid(uid, API_D3D);
|
||||
VertexShaderUid uid = GetVertexShaderUid(API_D3D);
|
||||
if (g_ActiveConfig.bEnableShaderDebugging)
|
||||
{
|
||||
ShaderCode code;
|
||||
GenerateVertexShaderCode(code, API_D3D);
|
||||
ShaderCode code = GenerateVertexShaderCode(API_D3D);
|
||||
vertex_uid_checker.AddToIndexAndCheck(code, uid, "Vertex", "v");
|
||||
}
|
||||
|
||||
|
@ -216,8 +214,7 @@ bool VertexShaderCache::SetShader()
|
|||
return (entry.shader != nullptr);
|
||||
}
|
||||
|
||||
ShaderCode code;
|
||||
GenerateVertexShaderCode(code, API_D3D);
|
||||
ShaderCode code = GenerateVertexShaderCode(API_D3D);
|
||||
|
||||
D3DBlob* pbytecode = nullptr;
|
||||
D3D::CompileVertexShader(code.GetBuffer(), &pbytecode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue