• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test: SpvParserMemoryTest_EmitStatement_AccessChain_Struct_DifferOnlyMemberName.spvasm
2; SPIR-V
3; Version: 1.0
4; Generator: Khronos SPIR-V Tools Assembler; 0
5; Bound: 101
6; Schema: 0
7OpCapability Shader
8OpMemoryModel Logical Simple
9OpEntryPoint Fragment %100 "main"
10OpExecutionMode %100 OriginUpperLeft
11OpName %myvar "myvar"
12OpName %myvar2 "myvar2"
13OpMemberName %_struct_3 1 "age"
14OpMemberName %_struct_4 1 "ancientness"
15%void = OpTypeVoid
16%6 = OpTypeFunction %void
17%float = OpTypeFloat 32
18%float_42 = OpConstant %float 42
19%float_420 = OpConstant %float 420
20%_struct_3 = OpTypeStruct %float %float
21%_struct_4 = OpTypeStruct %float %float
22%_ptr_Private_float = OpTypePointer Private %float
23%_ptr_Private__struct_3 = OpTypePointer Private %_struct_3
24%_ptr_Private__struct_4 = OpTypePointer Private %_struct_4
25%uint = OpTypeInt 32 0
26%uint_1 = OpConstant %uint 1
27%myvar = OpVariable %_ptr_Private__struct_3 Private
28%myvar2 = OpVariable %_ptr_Private__struct_4 Private
29%100 = OpFunction %void None %6
30%16 = OpLabel
31%2 = OpAccessChain %_ptr_Private_float %myvar %uint_1
32OpStore %2 %float_42
33%20 = OpAccessChain %_ptr_Private_float %myvar2 %uint_1
34OpStore %20 %float_420
35OpReturn
36OpFunctionEnd
37
38