| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 32 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %unused_entry_point "unused_entry_point" |
| OpExecutionMode %unused_entry_point LocalSize 1 1 1 |
| OpName %a "a" |
| OpName %a_0 "a" |
| OpName %b "b" |
| OpName %c "c" |
| OpMemberName %S 0 "val" |
| OpName %S "S" |
| OpName %d "d" |
| OpName %e "e" |
| OpName %unused_entry_point "unused_entry_point" |
| OpDecorate %_arr_v3float_uint_3 ArrayStride 16 |
| OpMemberDecorate %S 0 Offset 0 |
| %void = OpTypeVoid |
| %3 = OpTypeFunction %void |
| %int = OpTypeInt 32 1 |
| %v4int = OpTypeVector %int 4 |
| %_ptr_Function_v4int = OpTypePointer Function %v4int |
| %9 = OpConstantNull %v4int |
| %_ptr_Function_int = OpTypePointer Function %int |
| %uint = OpTypeInt 32 0 |
| %uint_0 = OpConstant %uint 0 |
| %float = OpTypeFloat 32 |
| %v3float = OpTypeVector %float 3 |
| %uint_3 = OpConstant %uint 3 |
| %_arr_v3float_uint_3 = OpTypeArray %v3float %uint_3 |
| %S = OpTypeStruct %_arr_v3float_uint_3 |
| %_ptr_Function_S = OpTypePointer Function %S |
| %24 = OpConstantNull %S |
| %_ptr_Function_v3float = OpTypePointer Function %v3float |
| %int_2 = OpConstant %int 2 |
| %a = OpFunction %void None %3 |
| %4 = OpLabel |
| %a_0 = OpVariable %_ptr_Function_v4int Function |
| %d = OpVariable %_ptr_Function_S Function |
| OpStore %a_0 %9 |
| %10 = OpAccessChain %_ptr_Function_int %a_0 %uint_0 |
| %b = OpLoad %int %10 None |
| %15 = OpLoad %v4int %a_0 None |
| %c = OpVectorShuffle %v4int %15 %15 2 2 1 1 |
| OpStore %d %24 |
| %25 = OpAccessChain %_ptr_Function_v3float %d %uint_0 %int_2 |
| %28 = OpLoad %v3float %25 None |
| %e = OpVectorShuffle %v3float %28 %28 1 2 0 |
| OpReturn |
| OpFunctionEnd |
| %unused_entry_point = OpFunction %void None %3 |
| %31 = OpLabel |
| OpReturn |
| OpFunctionEnd |