Shaders: pass only spatial coordinates to DXIL calculateLOD #103
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/103"
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 Zettrox/ztrx. Originally posted by VastyViz on 2026-11-25T11:32:54Z.
image_get_lod on array textures (1D_ARRAY and 2D_ARRAY) filled cs up to coords, passing the array slice into DXIL calculateLOD.f32. DXIL requires unused coordinate slots beyond the texture's spatial dimensions to be undef, causing the validator to reject affected pixel shaders with 'out of bound coord must be undef.'
Only load and pass the spatial coordinates when lowering op 81 (calculateLOD), leaving remaining slots undef. Add a synthetic pixel shader regression test covering 1D, 2D, 3D, 1D_ARRAY, and 2D_ARRAY validated with dxil.dll and compiled on D3D12 hardware and WARP.
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.