KhronosGroup / KhronosGroup/SPIRV-Tools
validation: OpDecorateStringGOOGLE can only be used with decorations that take string arguments
Open
component:validation
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 709
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 28
Description
For example, the following should fail validation:
```
OpCapability Shader
OpExtension "SPV_GOOGLE_hlsl_functionality1"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %1 "main"
OpExecutionMode %1 LocalSize 1 1 1
OpSource GLSL 450
OpDecorateStringGOOGLE %void ArrayStride 4 ; this is nonsense
%void = OpTypeVoid
%3 = OpTypeFunction %void
%1 = OpFunction %void None %3
%4 = OpLabel
OpReturn
OpFunctionEnd
```
Contributor guide
Assessment
This issue has not been assessed yet.