KhronosGroup / KhronosGroup/SPIRV-Tools

validation: OpDecorateStringGOOGLE can only be used with decorations that take string arguments

Open
#2,253 0 comments 0 reactions 1 assignee Claimed by @sarahM0 View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.