| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 93 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" %main_local_invocation_index_Input |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %src_private "src_private" |
| OpName %src_workgroup "src_workgroup" |
| OpMemberName %S 0 "arr" |
| OpName %S "S" |
| OpMemberName %tint_symbol_1 0 "tint_symbol" |
| OpName %tint_symbol_1 "tint_symbol_1" |
| OpMemberName %tint_symbol_3 0 "tint_symbol_2" |
| OpName %tint_symbol_3 "tint_symbol_3" |
| OpName %dst "dst" |
| OpName %dst_nested "dst_nested" |
| OpName %main_local_invocation_index_Input "main_local_invocation_index_Input" |
| OpName %ret_arr "ret_arr" |
| OpName %ret_struct_arr "ret_struct_arr" |
| OpName %foo "foo" |
| OpName %src_param "src_param" |
| OpName %src_function "src_function" |
| OpName %src_let "src_let" |
| OpName %src_nested "src_nested" |
| OpName %main_inner "main_inner" |
| OpName %tint_local_index "tint_local_index" |
| OpName %src_let "a" |
| OpName %main "main" |
| OpDecorate %_arr_v4int_uint_4 ArrayStride 16 |
| OpMemberDecorate %S 0 Offset 0 |
| OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| OpDecorate %tint_symbol_1 Block |
| OpDecorate %11 DescriptorSet 0 |
| OpDecorate %11 Binding 0 |
| OpDecorate %11 NonWritable |
| OpMemberDecorate %tint_symbol_3 0 Offset 0 |
| OpDecorate %tint_symbol_3 Block |
| OpDecorate %15 DescriptorSet 0 |
| OpDecorate %15 Binding 1 |
| OpDecorate %15 Coherent |
| OpDecorate %_arr_int_uint_2 ArrayStride 4 |
| OpDecorate %_arr__arr_int_uint_2_uint_3 ArrayStride 8 |
| OpDecorate %_arr__arr__arr_int_uint_2_uint_3_uint_4 ArrayStride 24 |
| OpDecorate %main_local_invocation_index_Input BuiltIn LocalInvocationIndex |
| %int = OpTypeInt 32 1 |
| %v4int = OpTypeVector %int 4 |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_v4int_uint_4 = OpTypeArray %v4int %uint_4 |
| %_ptr_Private__arr_v4int_uint_4 = OpTypePointer Private %_arr_v4int_uint_4 |
| %src_let = OpConstantNull %_arr_v4int_uint_4 |
| %src_private = OpVariable %_ptr_Private__arr_v4int_uint_4 Private %src_let |
| %_ptr_Workgroup__arr_v4int_uint_4 = OpTypePointer Workgroup %_arr_v4int_uint_4 |
| %src_workgroup = OpVariable %_ptr_Workgroup__arr_v4int_uint_4 Workgroup |
| %S = OpTypeStruct %_arr_v4int_uint_4 |
| %tint_symbol_1 = OpTypeStruct %S |
| %_ptr_Uniform_tint_symbol_1 = OpTypePointer Uniform %tint_symbol_1 |
| %11 = OpVariable %_ptr_Uniform_tint_symbol_1 Uniform |
| %tint_symbol_3 = OpTypeStruct %S |
| %_ptr_StorageBuffer_tint_symbol_3 = OpTypePointer StorageBuffer %tint_symbol_3 |
| %15 = OpVariable %_ptr_StorageBuffer_tint_symbol_3 StorageBuffer |
| %dst = OpVariable %_ptr_Private__arr_v4int_uint_4 Private %src_let |
| %uint_2 = OpConstant %uint 2 |
| %_arr_int_uint_2 = OpTypeArray %int %uint_2 |
| %uint_3 = OpConstant %uint 3 |
| %_arr__arr_int_uint_2_uint_3 = OpTypeArray %_arr_int_uint_2 %uint_3 |
| %_arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypeArray %_arr__arr_int_uint_2_uint_3 %uint_4 |
| %_ptr_Private__arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypePointer Private %_arr__arr__arr_int_uint_2_uint_3_uint_4 |
| %26 = OpConstantNull %_arr__arr__arr_int_uint_2_uint_3_uint_4 |
| %dst_nested = OpVariable %_ptr_Private__arr__arr__arr_int_uint_2_uint_3_uint_4 Private %26 |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %main_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input |
| %30 = OpTypeFunction %_arr_v4int_uint_4 |
| %33 = OpTypeFunction %S |
| %35 = OpConstantNull %S |
| %void = OpTypeVoid |
| %39 = OpTypeFunction %void %_arr_v4int_uint_4 |
| %_ptr_Function__arr_v4int_uint_4 = OpTypePointer Function %_arr_v4int_uint_4 |
| %int_1 = OpConstant %int 1 |
| %44 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1 |
| %int_2 = OpConstant %int 2 |
| %46 = OpConstantComposite %v4int %int_2 %int_2 %int_2 %int_2 |
| %int_3 = OpConstant %int 3 |
| %48 = OpConstantComposite %v4int %int_3 %int_3 %int_3 %int_3 |
| %43 = OpConstantComposite %_arr_v4int_uint_4 %44 %46 %48 %48 |
| %_ptr_Uniform__arr_v4int_uint_4 = OpTypePointer Uniform %_arr_v4int_uint_4 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_StorageBuffer__arr_v4int_uint_4 = OpTypePointer StorageBuffer %_arr_v4int_uint_4 |
| %_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypePointer Function %_arr__arr__arr_int_uint_2_uint_3_uint_4 |
| %68 = OpTypeFunction %void %uint |
| %bool = OpTypeBool |
| %_ptr_Workgroup_v4int = OpTypePointer Workgroup %v4int |
| %83 = OpConstantNull %v4int |
| %uint_1 = OpConstant %uint 1 |
| %uint_264 = OpConstant %uint 264 |
| %89 = OpTypeFunction %void |
| %ret_arr = OpFunction %_arr_v4int_uint_4 None %30 |
| %31 = OpLabel |
| OpReturnValue %src_let |
| OpFunctionEnd |
| %ret_struct_arr = OpFunction %S None %33 |
| %34 = OpLabel |
| OpReturnValue %35 |
| OpFunctionEnd |
| %foo = OpFunction %void None %39 |
| %src_param = OpFunctionParameter %_arr_v4int_uint_4 |
| %40 = OpLabel |
| %src_function = OpVariable %_ptr_Function__arr_v4int_uint_4 Function %src_let |
| %src_nested = OpVariable %_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 Function %26 |
| OpStore %dst %43 None |
| OpStore %dst %src_param None |
| %50 = OpFunctionCall %_arr_v4int_uint_4 %ret_arr |
| OpStore %dst %50 None |
| OpStore %dst %src_let None |
| %51 = OpLoad %_arr_v4int_uint_4 %src_function None |
| OpStore %dst %51 None |
| %52 = OpLoad %_arr_v4int_uint_4 %src_private None |
| OpStore %dst %52 None |
| %53 = OpLoad %_arr_v4int_uint_4 %src_workgroup None |
| OpStore %dst %53 None |
| %54 = OpFunctionCall %S %ret_struct_arr |
| %55 = OpCompositeExtract %_arr_v4int_uint_4 %54 0 |
| OpStore %dst %55 None |
| %56 = OpAccessChain %_ptr_Uniform__arr_v4int_uint_4 %11 %uint_0 %uint_0 |
| %59 = OpLoad %_arr_v4int_uint_4 %56 None |
| OpStore %dst %59 None |
| %60 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %15 %uint_0 %uint_0 |
| %62 = OpLoad %_arr_v4int_uint_4 %60 None |
| OpStore %dst %62 None |
| %65 = OpLoad %_arr__arr__arr_int_uint_2_uint_3_uint_4 %src_nested None |
| OpStore %dst_nested %65 None |
| OpReturn |
| OpFunctionEnd |
| %main_inner = OpFunction %void None %68 |
| %tint_local_index = OpFunctionParameter %uint |
| %69 = OpLabel |
| OpBranch %70 |
| %70 = OpLabel |
| OpBranch %73 |
| %73 = OpLabel |
| %75 = OpPhi %uint %tint_local_index %70 %76 %72 |
| OpLoopMerge %74 %72 None |
| OpBranch %71 |
| %71 = OpLabel |
| %77 = OpUGreaterThanEqual %bool %75 %uint_4 |
| OpSelectionMerge %79 None |
| OpBranchConditional %77 %80 %79 |
| %80 = OpLabel |
| OpBranch %74 |
| %79 = OpLabel |
| %81 = OpAccessChain %_ptr_Workgroup_v4int %src_workgroup %75 |
| OpStore %81 %83 None |
| OpBranch %72 |
| %72 = OpLabel |
| %76 = OpIAdd %uint %75 %uint_1 |
| OpBranch %73 |
| %74 = OpLabel |
| OpControlBarrier %uint_2 %uint_2 %uint_264 |
| %87 = OpFunctionCall %void %foo %src_let |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %89 |
| %90 = OpLabel |
| %91 = OpLoad %uint %main_local_invocation_index_Input None |
| %92 = OpFunctionCall %void %main_inner %91 |
| OpReturn |
| OpFunctionEnd |