You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code is specifically for producing error with bug request on SPIRV compilation. It's harder to make reduced example which will lead to exception when compiling with optimizations, but this exception is caused by the same thing, because when I'm replacing Buffer with StructuredBuffer, it goes away.
Actual Behavior
Compilation in both DXIL and SPIRV should result in error that Buffer can't be used with struct template parameter.
Description
When using
Buffer
with struct template parameter (likeBuffer<SomeStructName>
), compilation should fail with error telling that Buffer supports only scalar, vector and matrix types as template parameter. But instead:Maybe, somewhat related to #7080, but not sure.
Steps to Reproduce
Compile with
-E CSMain -T cs_6_6 -spirv -Od
https://godbolt.org/z/MGchz4K3E
This code is specifically for producing error with bug request on SPIRV compilation. It's harder to make reduced example which will lead to exception when compiling with optimizations, but this exception is caused by the same thing, because when I'm replacing
Buffer
withStructuredBuffer
, it goes away.Actual Behavior
Compilation in both DXIL and SPIRV should result in error that Buffer can't be used with struct template parameter.
Environment
The text was updated successfully, but these errors were encountered: