Description
Build fails when trying to build a unoptimized shader that uses cooperative vector with shader model 6.10.
Steps to Reproduce
Cooperative Vectors Example here:
https://devblogs.microsoft.com/directx/d3d12-linalg-preview/
Compile with following line:
bin/dxc -I ./include/hlsl -T cs_6_10 -enable-16bit-types -Od
Compiler Explorer link:
https://godbolt.org/z/Ws7rhMfvj
Actual Behavior
Will get following error:
error: validation errors
error: Declaration '%dx.types.LinAlgMatrixC8M16N16U0S0 = type { i8* }' uses a reserved prefix.
error: Pointers to pointers, or pointers in structures are not allowed.
error: Declaration '%dx.types.LinAlgMatrixC8M16N16U0S0 = type { i8* }' uses a reserved prefix.
error: Pointers to pointers, or pointers in structures are not allowed.
error: Declaration '%dx.types.LinAlgMatrixC8M16N16U0S0 = type { i8* }' uses a reserved prefix.
error: Pointers to pointers, or pointers in structures are not allowed.
Validation failed.
Environment
- DXC version 1.10.2605.2
- Host Operating System Windows 11
Description
Build fails when trying to build a unoptimized shader that uses cooperative vector with shader model 6.10.
Steps to Reproduce
Cooperative Vectors Example here:
https://devblogs.microsoft.com/directx/d3d12-linalg-preview/
Compile with following line:
bin/dxc -I ./include/hlsl -T cs_6_10 -enable-16bit-types -Od
Compiler Explorer link:
https://godbolt.org/z/Ws7rhMfvj
Actual Behavior
Will get following error:
error: validation errors
error: Declaration '%dx.types.LinAlgMatrixC8M16N16U0S0 = type { i8* }' uses a reserved prefix.
error: Pointers to pointers, or pointers in structures are not allowed.
error: Declaration '%dx.types.LinAlgMatrixC8M16N16U0S0 = type { i8* }' uses a reserved prefix.
error: Pointers to pointers, or pointers in structures are not allowed.
error: Declaration '%dx.types.LinAlgMatrixC8M16N16U0S0 = type { i8* }' uses a reserved prefix.
error: Pointers to pointers, or pointers in structures are not allowed.
Validation failed.
Environment