• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1### Compilation failed:
2
3error: SPIR-V validation error: Member index 0 is missing a location assignment
4  %s = OpTypeStruct %int
5
6OpCapability Shader
7%1 = OpExtInstImport "GLSL.std.450"
8OpMemoryModel Logical GLSL450
9OpEntryPoint Fragment %main "main" %3 %sk_Clockwise
10OpExecutionMode %main OriginUpperLeft
11OpName %s "s"
12OpMemberName %s 0 "I"
13OpName %sk_Clockwise "sk_Clockwise"
14OpName %main "main"
15OpMemberDecorate %s 0 Offset 0
16OpDecorate %s Block
17OpDecorate %sk_Clockwise BuiltIn FrontFacing
18%int = OpTypeInt 32 1
19%s = OpTypeStruct %int
20%_ptr_Input_s = OpTypePointer Input %s
21%3 = OpVariable %_ptr_Input_s Input
22%bool = OpTypeBool
23%_ptr_Input_bool = OpTypePointer Input %bool
24%sk_Clockwise = OpVariable %_ptr_Input_bool Input
25%void = OpTypeVoid
26%11 = OpTypeFunction %void
27%main = OpFunction %void None %11
28%12 = OpLabel
29OpReturn
30OpFunctionEnd
31
321 error
33