| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 22 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %unused_entry_point "unused_entry_point" |
| OpExecutionMode %unused_entry_point LocalSize 1 1 1 |
| OpName %f "f" |
| OpMemberName %S 0 "m" |
| OpMemberName %S 1 "n" |
| OpName %S "S" |
| OpName %a "a" |
| OpName %unused_entry_point "unused_entry_point" |
| OpMemberDecorate %S 0 Offset 0 |
| OpMemberDecorate %S 1 Offset 16 |
| %uint = OpTypeInt 32 0 |
| %3 = OpTypeFunction %uint |
| %int = OpTypeInt 32 1 |
| %v3uint = OpTypeVector %uint 3 |
| %S = OpTypeStruct %int %v3uint |
| %_ptr_Function_S = OpTypePointer Function %S |
| %10 = OpConstantNull %S |
| %_ptr_Function_v3uint = OpTypePointer Function %v3uint |
| %uint_1 = OpConstant %uint 1 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %int_2 = OpConstant %int 2 |
| %void = OpTypeVoid |
| %20 = OpTypeFunction %void |
| %f = OpFunction %uint None %3 |
| %4 = OpLabel |
| %a = OpVariable %_ptr_Function_S Function |
| OpStore %a %10 |
| %11 = OpAccessChain %_ptr_Function_v3uint %a %uint_1 |
| %14 = OpAccessChain %_ptr_Function_uint %11 %int_2 |
| %17 = OpLoad %uint %14 None |
| OpReturnValue %17 |
| OpFunctionEnd |
| %unused_entry_point = OpFunction %void None %20 |
| %21 = OpLabel |
| OpReturn |
| OpFunctionEnd |