[HLSL][SPIRV] SignedZeroInfNanPreserve capability should be used if shader is compiled with -Gis
Open
clang:HLSL:SPIRV
HLSL
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
Add SignedZeroInfNanPreserve capability to shaders if compiled with -Gis which was added to clang-dxc in #146448
See below for DXC behavior.
https://godbolt.org/z/eaK6YGe8q
Contributor guide
Research direction
Start by tracing clang-dxc handling of the -Gis option and the SPIR-V capability emission path. Compare the generated output with the linked Godbolt example; done means shaders compiled with -Gis include SignedZeroInfNanPreserve while other compilations retain their existing behavior.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100