[D3D12] Fix 4D5307DF fur textures

- Fixes issue https://github.com/xenia-canary/game-compatibility/issues/6
- Implements a load texture logic
This commit is contained in:
Raffaele
2025-12-19 23:50:58 +01:00
committed by Herman S.
parent 26824edcfa
commit fc5ab60a88
2 changed files with 44 additions and 57 deletions

View File

@@ -598,9 +598,9 @@ class D3D12TextureCache final : public TextureCache {
Microsoft::WRL::ComPtr<ID3D12Resource> resource_;
D3D12_RESOURCE_STATES resource_state_;
Microsoft::WRL::ComPtr<ID3D12Resource> resource_3d_as_2d_;
D3D12_RESOURCE_STATES resource_3d_as_2d_state_ =
D3D12_RESOURCE_STATE_COMMON;
// Cached 2D view of the first slice, managed as a standalone texture
// object.
std::unique_ptr<D3D12Texture> texture_3d_as_2d_;
// For bindful - indices in the non-shader-visible descriptor cache for
// copying to the shader-visible heap (much faster than recreating, which,