[D3D12] Fix device lost with resolution scaling in 3D-as-2D textures
This commit is contained in:
@@ -1895,6 +1895,10 @@ ID3D12Resource* D3D12TextureCache::D3D12Texture::GetOrCreate3DAs2DResource(
|
||||
desc.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D;
|
||||
desc.Width = key().GetWidth();
|
||||
desc.Height = key().GetHeight();
|
||||
if (key().scaled_resolve) {
|
||||
desc.Width *= d3d12_cache.draw_resolution_scale_x();
|
||||
desc.Height *= d3d12_cache.draw_resolution_scale_y();
|
||||
}
|
||||
desc.DepthOrArraySize = 1;
|
||||
desc.MipLevels = 1;
|
||||
desc.Format = d3d12_cache.GetDXGIResourceFormat(key());
|
||||
|
||||
Reference in New Issue
Block a user