• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test: SpvParserTest_CompositeExtract_Struct_Array_Matrix_Vector.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 GLCompute %100 "main"
10OpExecutionMode %100 LocalSize 1 1 1
11%void = OpTypeVoid
12%4 = OpTypeFunction %void
13%uint = OpTypeInt 32 0
14%int = OpTypeInt 32 1
15%float = OpTypeFloat 32
16%uint_10 = OpConstant %uint 10
17%uint_20 = OpConstant %uint 20
18%uint_3 = OpConstant %uint 3
19%uint_4 = OpConstant %uint 4
20%uint_5 = OpConstant %uint 5
21%int_1 = OpConstant %int 1
22%int_30 = OpConstant %int 30
23%int_40 = OpConstant %int 40
24%float_50 = OpConstant %float 50
25%float_60 = OpConstant %float 60
26%float_70 = OpConstant %float 70
27%v2uint = OpTypeVector %uint 2
28%v3uint = OpTypeVector %uint 3
29%v4uint = OpTypeVector %uint 4
30%v2int = OpTypeVector %int 2
31%v2float = OpTypeVector %float 2
32%mat3v2float = OpTypeMatrix %v2float 3
33%25 = OpConstantNull %mat3v2float
34%_struct_26 = OpTypeStruct %v2float %uint %int
35%_arr_uint_uint_5 = OpTypeArray %uint %uint_5
36%28 = OpConstantComposite %v2uint %uint_3 %uint_4
37%29 = OpConstantComposite %v2uint %uint_4 %uint_3
38%30 = OpConstantComposite %v2float %float_50 %float_60
39%31 = OpConstantComposite %v2float %float_60 %float_50
40%32 = OpConstantComposite %v2float %float_70 %float_70
41%_arr_mat3v2float_uint_3 = OpTypeArray %mat3v2float %uint_3
42%_struct_34 = OpTypeStruct %uint %_arr_mat3v2float_uint_3
43%_ptr_Function__struct_34 = OpTypePointer Function %_struct_34
44%100 = OpFunction %void None %4
45%36 = OpLabel
46%37 = OpVariable %_ptr_Function__struct_34 Function
47%1 = OpLoad %_struct_34 %37
48%2 = OpCompositeExtract %float %1 1 2 0 1
49OpReturn
50OpFunctionEnd
51
52