mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 07:39:17 +00:00
VideoBackends: Add AbstractShader and AbstractPipeline classes
This commit is contained in:
parent
31111ef143
commit
fec6bb4d56
47 changed files with 1825 additions and 33 deletions
|
@ -260,7 +260,7 @@ bool VertexShaderCache::SetShader(D3DVertexFormat* vertex_format)
|
|||
if (!last_entry->shader)
|
||||
return false;
|
||||
|
||||
vertex_format->SetInputLayout(last_entry->bytecode);
|
||||
D3D::stateman->SetInputLayout(vertex_format->GetInputLayout(last_entry->bytecode));
|
||||
D3D::stateman->SetVertexShader(last_entry->shader);
|
||||
return true;
|
||||
}
|
||||
|
@ -279,7 +279,7 @@ bool VertexShaderCache::SetShader(D3DVertexFormat* vertex_format)
|
|||
if (!last_entry->shader)
|
||||
return false;
|
||||
|
||||
vertex_format->SetInputLayout(last_entry->bytecode);
|
||||
D3D::stateman->SetInputLayout(vertex_format->GetInputLayout(last_entry->bytecode));
|
||||
D3D::stateman->SetVertexShader(last_entry->shader);
|
||||
return true;
|
||||
}
|
||||
|
@ -324,7 +324,7 @@ bool VertexShaderCache::SetUberShader(D3DVertexFormat* vertex_format)
|
|||
if (!last_uber_entry->shader)
|
||||
return false;
|
||||
|
||||
uber_vertex_format->SetInputLayout(last_uber_entry->bytecode);
|
||||
D3D::stateman->SetInputLayout(uber_vertex_format->GetInputLayout(last_uber_entry->bytecode));
|
||||
D3D::stateman->SetVertexShader(last_uber_entry->shader);
|
||||
return true;
|
||||
}
|
||||
|
@ -340,7 +340,7 @@ bool VertexShaderCache::SetUberShader(D3DVertexFormat* vertex_format)
|
|||
if (!last_uber_entry->shader)
|
||||
return false;
|
||||
|
||||
uber_vertex_format->SetInputLayout(last_uber_entry->bytecode);
|
||||
D3D::stateman->SetInputLayout(uber_vertex_format->GetInputLayout(last_uber_entry->bytecode));
|
||||
D3D::stateman->SetVertexShader(last_uber_entry->shader);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue