diff --git a/Source/Core/VideoBackends/D3D12/DX12Texture.h b/Source/Core/VideoBackends/D3D12/DX12Texture.h index c3b2a8b710..0808429902 100644 --- a/Source/Core/VideoBackends/D3D12/DX12Texture.h +++ b/Source/Core/VideoBackends/D3D12/DX12Texture.h @@ -37,7 +37,7 @@ public: const DescriptorHandle& GetSRVDescriptor() const { return m_srv_descriptor; } const DescriptorHandle& GetUAVDescriptor() const { return m_uav_descriptor; } D3D12_RESOURCE_STATES GetState() const { return m_state; } - u32 CalcSubresource(u32 level, u32 layer) const { return level + layer * m_config.layers; } + u32 CalcSubresource(u32 level, u32 layer) const { return level + layer * m_config.levels; } void TransitionToState(D3D12_RESOURCE_STATES state) const;