• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test: SpvModuleScopeVarParserTest_FlattenStruct_LocOnMembers.spvasm
2; SPIR-V
3; Version: 1.0
4; Generator: Khronos SPIR-V Tools Assembler; 0
5; Bound: 14
6; Schema: 0
7OpCapability Shader
8OpMemoryModel Logical Simple
9OpEntryPoint Vertex %4 "main" %1 %gl_Position %3
10OpName %Communicators "Communicators"
11OpMemberName %Communicators 0 "alice"
12OpMemberName %Communicators 1 "bob"
13OpMemberDecorate %Communicators 0 Location 9
14OpMemberDecorate %Communicators 1 Location 11
15OpDecorate %Communicators Block
16OpDecorate %gl_Position BuiltIn Position
17%void = OpTypeVoid
18%7 = OpTypeFunction %void
19%float = OpTypeFloat 32
20%v4float = OpTypeVector %float 4
21%Communicators = OpTypeStruct %float %v4float
22%_ptr_Input_Communicators = OpTypePointer Input %Communicators
23%_ptr_Output_Communicators = OpTypePointer Output %Communicators
24%1 = OpVariable %_ptr_Input_Communicators Input
25%3 = OpVariable %_ptr_Output_Communicators Output
26%_ptr_Output_v4float = OpTypePointer Output %v4float
27%gl_Position = OpVariable %_ptr_Output_v4float Output
28%4 = OpFunction %void None %7
29%10 = OpLabel
30OpReturn
31OpFunctionEnd
32
33