mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
VideoBackends: support multiple compute images for some backends (D3D, OGL, Vulkan)
This commit is contained in:
parent
61c45e8d68
commit
3627398cf5
21 changed files with 107 additions and 59 deletions
|
@ -239,9 +239,10 @@ void Gfx::SetSamplerState(u32 index, const SamplerState& state)
|
|||
D3D::stateman->SetSampler(index, m_state_cache.Get(state));
|
||||
}
|
||||
|
||||
void Gfx::SetComputeImageTexture(AbstractTexture* texture, bool read, bool write)
|
||||
void Gfx::SetComputeImageTexture(u32 index, AbstractTexture* texture, bool read, bool write)
|
||||
{
|
||||
D3D::stateman->SetComputeUAV(texture ? static_cast<DXTexture*>(texture)->GetD3DUAV() : nullptr);
|
||||
D3D::stateman->SetComputeUAV(index,
|
||||
texture ? static_cast<DXTexture*>(texture)->GetD3DUAV() : nullptr);
|
||||
}
|
||||
|
||||
void Gfx::UnbindTexture(const AbstractTexture* texture)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue