VideoBackends: support multiple compute images for some backends (D3D, OGL, Vulkan)

This commit is contained in:
iwubcode 2023-06-10 12:35:36 -05:00 committed by Nayla Hanegan
commit 0726a0e9c8
No known key found for this signature in database
GPG key ID: 3075216CED0DB01D
21 changed files with 107 additions and 59 deletions

View file

@ -263,7 +263,7 @@ void Gfx::SetSamplerState(u32 index, const SamplerState& state)
m_dirty_bits |= DirtyState_Samplers;
}
void Gfx::SetComputeImageTexture(AbstractTexture* texture, bool read, bool write)
void Gfx::SetComputeImageTexture(u32 index, AbstractTexture* texture, bool read, bool write)
{
const DXTexture* dxtex = static_cast<const DXTexture*>(texture);
if (m_state.compute_image_texture == dxtex)