Accesses of expressions emitted by unpack4x{I,U}8
in {hlsl,msl}-out
cause compilation errors
#6772
Labels
api: dx12
Issues with DX12 or DXGI
api: metal
Issues with Metal
area: naga back-end
Outputs of naga shader conversion
lang: HLSL
D3D Shading Language
lang: Metal
Metal Shading Language
naga
Shader Translator
type: bug
Something isn't working
unpack4x{I,U}8
emits some bit-shifting expressions that aren't composable with further accesses of the members of the emitteduint4
. For example, the following WGSL:This needs to be properly parenthesized, i.e.:
The text was updated successfully, but these errors were encountered: