[hlsl-out] Output is not HLSL 2021 compatible #4498
Labels
area: naga back-end
Outputs of naga shader conversion
lang: HLSL
D3D Shading Language
naga
Shader Translator
type: enhancement
New feature or request
Naga currently generates hlsl that is not valid HLSL 2021, as there binary logic operators can only be used with scalars, so we need to change generation:
While possible (changing
countLeadingZeros()
andselect()
writing is enough to pass CI), fxc does not support HLSL 2021 (and theand()
,or()
andselect()
intrinsics are only available in HLSL 2021).In gfx-rs/naga#2447 we worked around the DX Compiler release for August 2023 making HLSL 2021 the default by specifying
-HV 2018
in CI, but:This issue is tracking that.
The text was updated successfully, but these errors were encountered: