Recompiler: preserve the texture footprint for cubemap samples with explicit gradients #762
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 ivall/xcl. Originally posted by AkshatPal2007 on 2026-11-24T04:52:41Z.
The MIMG cube path in
emit.rsreduces two face-space gradients to one LOD and callsSampleLevel. An anisotropic sampler loses the direction of the footprint.HANDOFF.mdrecordsimage_sample_d(_cl)on cubemaps in a retail shader survey.On
64b3f35, a syntheticIMAGE_SAMPLE_Dkernel sampled a white column on a 32×32 face with an 8×1 texel footprint and a 16× anisotropic sampler. The cube returned 1.0, while the equivalent 2D-array slice returned 0.125 on the same RTX 4070 Laptop GPU (Windows 11, DXC 1.8.2502). Both views had one mip.I’m working on projecting the two gradients into direction space for native
TextureCubeArray.SampleGrad, including minimum LOD, and comparing both sampling paths in a GPU test. Retail visual impact has not been measured.AI use: Codex (gpt-6.2-astra) investigated the emitter, wrote and ran the synthetic reproduction, and drafted this issue.