fix: preserve array slices in default texture SRVs #46

Closed
github-bot wants to merge 2 commits from gh-pr/46/head into gh-pr/46/base
Owner

@⁠Jess-Doit on GitHub · 2026-11-21 20:43 UTC · original
fix/default-array-srv → main · +337 −3 · 3 files · 2 commits · closed without merging

Summary

Use a TEXTURE2DARRAY view for default SRVs on single-sampled texture arrays promoted to a typeless host format. The view keeps the guest format and covers every slice and mip.

Testing

  • The WARP regression reproduced zero reads from both mips of slice 1 on main. With the fix, all four array samples and both single-slice samples match the uploaded colors.
  • The full x64 Windows Release suite passed 24 of 25 tests. test_d3d12_guest_texture fails at the same assertion on main. #36 covers that upload issue.
**@⁠Jess-Doit** on GitHub · 2026-11-21 20:43 UTC · [original](https://github.com/Freminet/ScarlettX/pull/46) `fix/default-array-srv` → `main` · +337 −3 · 3 files · 2 commits · closed without merging ## Summary Use a `TEXTURE2DARRAY` view for default SRVs on single-sampled texture arrays promoted to a typeless host format. The view keeps the guest format and covers every slice and mip. ## Testing - The WARP regression reproduced zero reads from both mips of slice 1 on `main`. With the fix, all four array samples and both single-slice samples match the uploaded colors. - The full x64 Windows Release suite passed 24 of 25 tests. `test_d3d12_guest_texture` fails at the same assertion on `main`. #36 covers that upload issue.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:56:52 +00:00
github-bot closed this pull request 2026-11-26 19:56:52 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.