| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 109 | |
| ; 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" | |
| OpMemberName %tint_symbol_5 0 "tint_symbol_4" | |
| OpName %tint_symbol_5 "tint_symbol_5" | |
| OpMemberName %S_nested 0 "arr" | |
| OpName %S_nested "S_nested" | |
| OpMemberName %tint_symbol_7 0 "tint_symbol_6" | |
| OpName %tint_symbol_7 "tint_symbol_7" | |
| 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 "ary" | |
| 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 | |
| OpMemberDecorate %tint_symbol_5 0 Offset 0 | |
| OpDecorate %tint_symbol_5 Block | |
| OpDecorate %18 DescriptorSet 0 | |
| OpDecorate %18 Binding 2 | |
| 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 | |
| OpMemberDecorate %S_nested 0 Offset 0 | |
| OpMemberDecorate %tint_symbol_7 0 Offset 0 | |
| OpDecorate %tint_symbol_7 Block | |
| OpDecorate %21 DescriptorSet 0 | |
| OpDecorate %21 Binding 3 | |
| 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 | |
| %tint_symbol_5 = OpTypeStruct %S | |
| %_ptr_StorageBuffer_tint_symbol_5 = OpTypePointer StorageBuffer %tint_symbol_5 | |
| %18 = OpVariable %_ptr_StorageBuffer_tint_symbol_5 StorageBuffer | |
| %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 | |
| %S_nested = OpTypeStruct %_arr__arr__arr_int_uint_2_uint_3_uint_4 | |
| %tint_symbol_7 = OpTypeStruct %S_nested | |
| %_ptr_StorageBuffer_tint_symbol_7 = OpTypePointer StorageBuffer %tint_symbol_7 | |
| %21 = OpVariable %_ptr_StorageBuffer_tint_symbol_7 StorageBuffer | |
| %_ptr_Input_uint = OpTypePointer Input %uint | |
| %main_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input | |
| %33 = OpTypeFunction %_arr_v4int_uint_4 | |
| %36 = OpTypeFunction %S | |
| %38 = OpConstantNull %S | |
| %void = OpTypeVoid | |
| %42 = OpTypeFunction %void %_arr_v4int_uint_4 | |
| %_ptr_Function__arr_v4int_uint_4 = OpTypePointer Function %_arr_v4int_uint_4 | |
| %_ptr_StorageBuffer__arr_v4int_uint_4 = OpTypePointer StorageBuffer %_arr_v4int_uint_4 | |
| %uint_0 = OpConstant %uint 0 | |
| %int_1 = OpConstant %int 1 | |
| %50 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1 | |
| %int_2 = OpConstant %int 2 | |
| %52 = OpConstantComposite %v4int %int_2 %int_2 %int_2 %int_2 | |
| %int_3 = OpConstant %int 3 | |
| %54 = OpConstantComposite %v4int %int_3 %int_3 %int_3 %int_3 | |
| %49 = OpConstantComposite %_arr_v4int_uint_4 %50 %52 %54 %54 | |
| %_ptr_Uniform__arr_v4int_uint_4 = OpTypePointer Uniform %_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 | |
| %78 = OpConstantNull %_arr__arr__arr_int_uint_2_uint_3_uint_4 | |
| %_ptr_StorageBuffer__arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypePointer StorageBuffer %_arr__arr__arr_int_uint_2_uint_3_uint_4 | |
| %84 = OpTypeFunction %void %uint | |
| %bool = OpTypeBool | |
| %_ptr_Workgroup_v4int = OpTypePointer Workgroup %v4int | |
| %99 = OpConstantNull %v4int | |
| %uint_1 = OpConstant %uint 1 | |
| %uint_264 = OpConstant %uint 264 | |
| %105 = OpTypeFunction %void | |
| %ret_arr = OpFunction %_arr_v4int_uint_4 None %33 | |
| %34 = OpLabel | |
| OpReturnValue %src_let | |
| OpFunctionEnd | |
| %ret_struct_arr = OpFunction %S None %36 | |
| %37 = OpLabel | |
| OpReturnValue %38 | |
| OpFunctionEnd | |
| %foo = OpFunction %void None %42 | |
| %src_param = OpFunctionParameter %_arr_v4int_uint_4 | |
| %43 = 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 %78 | |
| %46 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %18 %uint_0 %uint_0 | |
| OpStore %46 %49 | |
| %56 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %18 %uint_0 %uint_0 | |
| OpStore %56 %src_param | |
| %57 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %18 %uint_0 %uint_0 | |
| %58 = OpFunctionCall %_arr_v4int_uint_4 %ret_arr | |
| OpStore %57 %58 | |
| %59 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %18 %uint_0 %uint_0 | |
| OpStore %59 %src_let | |
| %60 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %18 %uint_0 %uint_0 | |
| %61 = OpLoad %_arr_v4int_uint_4 %src_function | |
| OpStore %60 %61 | |
| %62 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %18 %uint_0 %uint_0 | |
| %63 = OpLoad %_arr_v4int_uint_4 %src_private | |
| OpStore %62 %63 | |
| %64 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %18 %uint_0 %uint_0 | |
| %65 = OpLoad %_arr_v4int_uint_4 %src_workgroup | |
| OpStore %64 %65 | |
| %66 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %18 %uint_0 %uint_0 | |
| %67 = OpFunctionCall %S %ret_struct_arr | |
| %68 = OpCompositeExtract %_arr_v4int_uint_4 %67 0 | |
| OpStore %66 %68 | |
| %69 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %18 %uint_0 %uint_0 | |
| %70 = OpAccessChain %_ptr_Uniform__arr_v4int_uint_4 %11 %uint_0 %uint_0 | |
| %72 = OpLoad %_arr_v4int_uint_4 %70 | |
| OpStore %69 %72 | |
| %73 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %18 %uint_0 %uint_0 | |
| %74 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %15 %uint_0 %uint_0 | |
| %75 = OpLoad %_arr_v4int_uint_4 %74 | |
| OpStore %73 %75 | |
| %79 = OpAccessChain %_ptr_StorageBuffer__arr__arr__arr_int_uint_2_uint_3_uint_4 %21 %uint_0 %uint_0 | |
| %81 = OpLoad %_arr__arr__arr_int_uint_2_uint_3_uint_4 %src_nested | |
| OpStore %79 %81 | |
| OpReturn | |
| OpFunctionEnd | |
| %main_inner = OpFunction %void None %84 | |
| %tint_local_index = OpFunctionParameter %uint | |
| %85 = OpLabel | |
| OpBranch %86 | |
| %86 = OpLabel | |
| OpBranch %89 | |
| %89 = OpLabel | |
| %91 = OpPhi %uint %tint_local_index %86 %92 %88 | |
| OpLoopMerge %90 %88 None | |
| OpBranch %87 | |
| %87 = OpLabel | |
| %93 = OpUGreaterThanEqual %bool %91 %uint_4 | |
| OpSelectionMerge %95 None | |
| OpBranchConditional %93 %96 %95 | |
| %96 = OpLabel | |
| OpBranch %90 | |
| %95 = OpLabel | |
| %97 = OpAccessChain %_ptr_Workgroup_v4int %src_workgroup %91 | |
| OpStore %97 %99 | |
| OpBranch %88 | |
| %88 = OpLabel | |
| %92 = OpIAdd %uint %91 %uint_1 | |
| OpBranch %89 | |
| %90 = OpLabel | |
| OpControlBarrier %uint_2 %uint_2 %uint_264 | |
| %103 = OpFunctionCall %void %foo %src_let | |
| OpReturn | |
| OpFunctionEnd | |
| %main = OpFunction %void None %105 | |
| %106 = OpLabel | |
| %107 = OpLoad %uint %main_local_invocation_index_Input | |
| %108 = OpFunctionCall %void %main_inner %107 | |
| OpReturn | |
| OpFunctionEnd |