[GPU] 3d-to-d2 texture implementation

Adds vulkan version of mode 1 and 2 and fixes related crashes by keeping
the 2d texture views from the texture cache.
This commit is contained in:
Herman S.
2026-01-13 21:33:49 +09:00
parent 7c9b5af236
commit 90c48e1d21
11 changed files with 389 additions and 43 deletions

View File

@@ -571,9 +571,11 @@ class D3D12TextureCache final : public TextureCache {
ID3D12Resource* GetOrCreate3DAs2DResource(D3D12_RESOURCE_STATES end_state);
// track_usage: if false, texture won't participate in LRU cache eviction.
explicit D3D12Texture(D3D12TextureCache& texture_cache,
const TextureKey& key, ID3D12Resource* resource,
D3D12_RESOURCE_STATES resource_state);
D3D12_RESOURCE_STATES resource_state,
bool track_usage = true);
~D3D12Texture();
ID3D12Resource* resource() const { return resource_.Get(); }