mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 09:39:13 +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
|
@ -222,13 +222,14 @@ void StateManager::SetTextureByMask(u32 textureSlotMask, ID3D11ShaderResourceVie
|
|||
}
|
||||
}
|
||||
|
||||
void StateManager::SetComputeUAV(ID3D11UnorderedAccessView* uav)
|
||||
void StateManager::SetComputeUAV(u32 index, ID3D11UnorderedAccessView* uav)
|
||||
{
|
||||
if (m_compute_image == uav)
|
||||
if (m_compute_images[index] == uav)
|
||||
return;
|
||||
|
||||
m_compute_image = uav;
|
||||
D3D::context->CSSetUnorderedAccessViews(0, 1, &uav, nullptr);
|
||||
m_compute_images[index] = uav;
|
||||
D3D::context->CSSetUnorderedAccessViews(0, static_cast<u32>(m_compute_images.size()),
|
||||
m_compute_images.data(), nullptr);
|
||||
}
|
||||
|
||||
void StateManager::SetComputeShader(ID3D11ComputeShader* shader)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue