GPU: preserve the resource minimum LOD in streamed texture views #1207
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1210"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from fxceless/victory-fork. Originally posted by BradRoland on 2026-11-26T00:10:53Z.
When levels on demand hides an unbacked mip,
show_frommoves the start of the shader view and also lowers the title’sResourceMinLODClamp. With mip 0 unbacked and a minimum of 3, the adjusted view consequently samples mip 2. The minimum is expressed in resource mip coordinates. This change preserves it for 2D and 2D-array views. D3D12 texture view documentationCredit to teecil for identifying the coordinate issue in the pending resident-range change. I reproduced it independently on current main using the existing reserved-texture fixture, which exercises the path added in #747. Original report on #1031
The fixture fills each mip with a different byte and samples LOD 0 through both descriptors. Results matched on a GeForce RTX 4080 (621.14) and WARP, with the D3D12 debug layer enabled.
All three ordinary tile tests and 29 descriptor tests passed. The full opt-in tile test passed on each adapter. This was a synthetic run. In-game impact is unmeasured.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.