diff options
Diffstat (limited to 'Source/Core/VideoBackends/D3D/Render.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/Render.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/D3D/Render.cpp b/Source/Core/VideoBackends/D3D/Render.cpp index a7518cdf64..a7000aace3 100644 --- a/Source/Core/VideoBackends/D3D/Render.cpp +++ b/Source/Core/VideoBackends/D3D/Render.cpp @@ -733,11 +733,24 @@ void Renderer::SetDepthState(const DepthState& state) m_gx_state.zmode.hex = state.hex; } +void Renderer::SetTexture(u32 index, const AbstractTexture* texture) +{ + D3D::stateman->SetTexture( + index, + texture ? static_cast<const DXTexture*>(texture)->GetRawTexIdentifier()->GetSRV() : nullptr); +} + void Renderer::SetSamplerState(u32 index, const SamplerState& state) { m_gx_state.samplers[index].hex = state.hex; } +void Renderer::UnbindTexture(const AbstractTexture* texture) +{ + D3D::stateman->UnsetTexture( + static_cast<const DXTexture*>(texture)->GetRawTexIdentifier()->GetSRV()); +} + void Renderer::SetInterlacingMode() { // TODO |
