| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 187 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" %main_local_invocation_index_Input |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpMemberName %Inner 0 "scalar_f32" |
| OpMemberName %Inner 1 "scalar_i32" |
| OpMemberName %Inner 2 "scalar_u32" |
| OpMemberName %Inner 3 "vec2_f32" |
| OpMemberName %Inner 4 "vec2_i32" |
| OpMemberName %Inner 5 "vec2_u32" |
| OpMemberName %Inner 6 "vec3_f32" |
| OpMemberName %Inner 7 "vec3_i32" |
| OpMemberName %Inner 8 "vec3_u32" |
| OpMemberName %Inner 9 "vec4_f32" |
| OpMemberName %Inner 10 "vec4_i32" |
| OpMemberName %Inner 11 "vec4_u32" |
| OpMemberName %Inner 12 "mat2x2_f32" |
| OpMemberName %Inner 13 "mat2x3_f32" |
| OpMemberName %Inner 14 "mat2x4_f32" |
| OpMemberName %Inner 15 "mat3x2_f32" |
| OpMemberName %Inner 16 "mat3x3_f32" |
| OpMemberName %Inner 17 "mat3x4_f32" |
| OpMemberName %Inner 18 "mat4x2_f32" |
| OpMemberName %Inner 19 "mat4x3_f32" |
| OpMemberName %Inner 20 "mat4x4_f32" |
| OpMemberName %Inner 21 "arr2_vec3_f32" |
| OpName %Inner "Inner" |
| OpMemberName %S 0 "arr" |
| OpName %S "S" |
| OpName %sb "sb" |
| OpName %main_local_invocation_index_Input "main_local_invocation_index_Input" |
| OpName %main_inner "main_inner" |
| OpName %idx "idx" |
| OpName %tint_store_and_preserve_padding "tint_store_and_preserve_padding" |
| OpName %target_indices "target_indices" |
| OpName %value_param "value_param" |
| OpName %tint_store_and_preserve_padding_0 "tint_store_and_preserve_padding" |
| OpName %target_indices_0 "target_indices" |
| OpName %value_param_0 "value_param" |
| OpName %tint_store_and_preserve_padding_1 "tint_store_and_preserve_padding" |
| OpName %target_indices_1 "target_indices" |
| OpName %value_param_1 "value_param" |
| OpName %tint_store_and_preserve_padding_2 "tint_store_and_preserve_padding" |
| OpName %target_indices_2 "target_indices" |
| OpName %value_param_2 "value_param" |
| OpName %main "main" |
| OpMemberDecorate %Inner 0 Offset 0 |
| OpMemberDecorate %Inner 1 Offset 4 |
| OpMemberDecorate %Inner 2 Offset 8 |
| OpMemberDecorate %Inner 3 Offset 16 |
| OpMemberDecorate %Inner 4 Offset 24 |
| OpMemberDecorate %Inner 5 Offset 32 |
| OpMemberDecorate %Inner 6 Offset 48 |
| OpMemberDecorate %Inner 7 Offset 64 |
| OpMemberDecorate %Inner 8 Offset 80 |
| OpMemberDecorate %Inner 9 Offset 96 |
| OpMemberDecorate %Inner 10 Offset 112 |
| OpMemberDecorate %Inner 11 Offset 128 |
| OpMemberDecorate %Inner 12 Offset 144 |
| OpMemberDecorate %Inner 12 ColMajor |
| OpMemberDecorate %Inner 12 MatrixStride 8 |
| OpMemberDecorate %Inner 13 Offset 160 |
| OpMemberDecorate %Inner 13 ColMajor |
| OpMemberDecorate %Inner 13 MatrixStride 16 |
| OpMemberDecorate %Inner 14 Offset 192 |
| OpMemberDecorate %Inner 14 ColMajor |
| OpMemberDecorate %Inner 14 MatrixStride 16 |
| OpMemberDecorate %Inner 15 Offset 224 |
| OpMemberDecorate %Inner 15 ColMajor |
| OpMemberDecorate %Inner 15 MatrixStride 8 |
| OpMemberDecorate %Inner 16 Offset 256 |
| OpMemberDecorate %Inner 16 ColMajor |
| OpMemberDecorate %Inner 16 MatrixStride 16 |
| OpMemberDecorate %Inner 17 Offset 304 |
| OpMemberDecorate %Inner 17 ColMajor |
| OpMemberDecorate %Inner 17 MatrixStride 16 |
| OpMemberDecorate %Inner 18 Offset 352 |
| OpMemberDecorate %Inner 18 ColMajor |
| OpMemberDecorate %Inner 18 MatrixStride 8 |
| OpMemberDecorate %Inner 19 Offset 384 |
| OpMemberDecorate %Inner 19 ColMajor |
| OpMemberDecorate %Inner 19 MatrixStride 16 |
| OpMemberDecorate %Inner 20 Offset 448 |
| OpMemberDecorate %Inner 20 ColMajor |
| OpMemberDecorate %Inner 20 MatrixStride 16 |
| OpDecorate %_arr_v3float_uint_2 ArrayStride 16 |
| OpMemberDecorate %Inner 21 Offset 512 |
| OpDecorate %_runtimearr_Inner ArrayStride 544 |
| OpMemberDecorate %S 0 Offset 0 |
| OpDecorate %S Block |
| OpDecorate %sb DescriptorSet 0 |
| OpDecorate %sb Binding 0 |
| OpDecorate %sb Coherent |
| OpDecorate %main_local_invocation_index_Input BuiltIn LocalInvocationIndex |
| OpDecorate %_arr_uint_uint_1 ArrayStride 4 |
| %float = OpTypeFloat 32 |
| %int = OpTypeInt 32 1 |
| %uint = OpTypeInt 32 0 |
| %v2float = OpTypeVector %float 2 |
| %v2int = OpTypeVector %int 2 |
| %v2uint = OpTypeVector %uint 2 |
| %v3float = OpTypeVector %float 3 |
| %v3int = OpTypeVector %int 3 |
| %v3uint = OpTypeVector %uint 3 |
| %v4float = OpTypeVector %float 4 |
| %v4int = OpTypeVector %int 4 |
| %v4uint = OpTypeVector %uint 4 |
| %mat2v2float = OpTypeMatrix %v2float 2 |
| %mat2v3float = OpTypeMatrix %v3float 2 |
| %mat2v4float = OpTypeMatrix %v4float 2 |
| %mat3v2float = OpTypeMatrix %v2float 3 |
| %mat3v3float = OpTypeMatrix %v3float 3 |
| %mat3v4float = OpTypeMatrix %v4float 3 |
| %mat4v2float = OpTypeMatrix %v2float 4 |
| %mat4v3float = OpTypeMatrix %v3float 4 |
| %mat4v4float = OpTypeMatrix %v4float 4 |
| %uint_2 = OpConstant %uint 2 |
| %_arr_v3float_uint_2 = OpTypeArray %v3float %uint_2 |
| %Inner = OpTypeStruct %float %int %uint %v2float %v2int %v2uint %v3float %v3int %v3uint %v4float %v4int %v4uint %mat2v2float %mat2v3float %mat2v4float %mat3v2float %mat3v3float %mat3v4float %mat4v2float %mat4v3float %mat4v4float %_arr_v3float_uint_2 |
| %_runtimearr_Inner = OpTypeRuntimeArray %Inner |
| %S = OpTypeStruct %_runtimearr_Inner |
| %_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S |
| %sb = OpVariable %_ptr_StorageBuffer_S StorageBuffer |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %main_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input |
| %void = OpTypeVoid |
| %34 = OpTypeFunction %void %uint |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %uint_0 = OpConstant %uint 0 |
| %float_0 = OpConstant %float 0 |
| %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int |
| %uint_1 = OpConstant %uint 1 |
| %int_0 = OpConstant %int 0 |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| %_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float |
| %uint_3 = OpConstant %uint 3 |
| %49 = OpConstantNull %v2float |
| %_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int |
| %uint_4 = OpConstant %uint 4 |
| %53 = OpConstantNull %v2int |
| %_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint |
| %uint_5 = OpConstant %uint 5 |
| %57 = OpConstantNull %v2uint |
| %_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float |
| %uint_6 = OpConstant %uint 6 |
| %61 = OpConstantNull %v3float |
| %_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int |
| %uint_7 = OpConstant %uint 7 |
| %65 = OpConstantNull %v3int |
| %_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint |
| %uint_8 = OpConstant %uint 8 |
| %69 = OpConstantNull %v3uint |
| %_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float |
| %uint_9 = OpConstant %uint 9 |
| %73 = OpConstantNull %v4float |
| %_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int |
| %uint_10 = OpConstant %uint 10 |
| %77 = OpConstantNull %v4int |
| %_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint |
| %uint_11 = OpConstant %uint 11 |
| %81 = OpConstantNull %v4uint |
| %_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float |
| %uint_12 = OpConstant %uint 12 |
| %85 = OpConstantNull %mat2v2float |
| %_arr_uint_uint_1 = OpTypeArray %uint %uint_1 |
| %90 = OpConstantNull %mat2v3float |
| %_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float |
| %uint_14 = OpConstant %uint 14 |
| %94 = OpConstantNull %mat2v4float |
| %_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float |
| %uint_15 = OpConstant %uint 15 |
| %98 = OpConstantNull %mat3v2float |
| %102 = OpConstantNull %mat3v3float |
| %_ptr_StorageBuffer_mat3v4float = OpTypePointer StorageBuffer %mat3v4float |
| %uint_17 = OpConstant %uint 17 |
| %106 = OpConstantNull %mat3v4float |
| %_ptr_StorageBuffer_mat4v2float = OpTypePointer StorageBuffer %mat4v2float |
| %uint_18 = OpConstant %uint 18 |
| %110 = OpConstantNull %mat4v2float |
| %114 = OpConstantNull %mat4v3float |
| %_ptr_StorageBuffer_mat4v4float = OpTypePointer StorageBuffer %mat4v4float |
| %uint_20 = OpConstant %uint 20 |
| %118 = OpConstantNull %mat4v4float |
| %122 = OpConstantNull %_arr_v3float_uint_2 |
| %125 = OpTypeFunction %void %_arr_uint_uint_1 %mat2v3float |
| %uint_13 = OpConstant %uint 13 |
| %135 = OpTypeFunction %void %_arr_uint_uint_1 %mat3v3float |
| %uint_16 = OpConstant %uint 16 |
| %147 = OpTypeFunction %void %_arr_uint_uint_1 %mat4v3float |
| %uint_19 = OpConstant %uint 19 |
| %161 = OpTypeFunction %void %_arr_uint_uint_1 %_arr_v3float_uint_2 |
| %_ptr_Function__arr_v3float_uint_2 = OpTypePointer Function %_arr_v3float_uint_2 |
| %bool = OpTypeBool |
| %uint_21 = OpConstant %uint 21 |
| %_ptr_Function_v3float = OpTypePointer Function %v3float |
| %183 = OpTypeFunction %void |
| %main_inner = OpFunction %void None %34 |
| %idx = OpFunctionParameter %uint |
| %35 = OpLabel |
| %36 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %idx %uint_0 |
| OpStore %36 %float_0 None |
| %40 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %idx %uint_1 |
| OpStore %40 %int_0 None |
| %44 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %idx %uint_2 |
| OpStore %44 %uint_0 None |
| %46 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %idx %uint_3 |
| OpStore %46 %49 None |
| %50 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %idx %uint_4 |
| OpStore %50 %53 None |
| %54 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %idx %uint_5 |
| OpStore %54 %57 None |
| %58 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %idx %uint_6 |
| OpStore %58 %61 None |
| %62 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %idx %uint_7 |
| OpStore %62 %65 None |
| %66 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %idx %uint_8 |
| OpStore %66 %69 None |
| %70 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %idx %uint_9 |
| OpStore %70 %73 None |
| %74 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %idx %uint_10 |
| OpStore %74 %77 None |
| %78 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %idx %uint_11 |
| OpStore %78 %81 None |
| %82 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %idx %uint_12 |
| OpStore %82 %85 None |
| %87 = OpCompositeConstruct %_arr_uint_uint_1 %idx |
| %88 = OpFunctionCall %void %tint_store_and_preserve_padding %87 %90 |
| %91 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %idx %uint_14 |
| OpStore %91 %94 None |
| %95 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %idx %uint_15 |
| OpStore %95 %98 None |
| %99 = OpCompositeConstruct %_arr_uint_uint_1 %idx |
| %100 = OpFunctionCall %void %tint_store_and_preserve_padding_0 %99 %102 |
| %103 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %idx %uint_17 |
| OpStore %103 %106 None |
| %107 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %idx %uint_18 |
| OpStore %107 %110 None |
| %111 = OpCompositeConstruct %_arr_uint_uint_1 %idx |
| %112 = OpFunctionCall %void %tint_store_and_preserve_padding_1 %111 %114 |
| %115 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %idx %uint_20 |
| OpStore %115 %118 None |
| %119 = OpCompositeConstruct %_arr_uint_uint_1 %idx |
| %120 = OpFunctionCall %void %tint_store_and_preserve_padding_2 %119 %122 |
| OpReturn |
| OpFunctionEnd |
| %tint_store_and_preserve_padding = OpFunction %void None %125 |
| %target_indices = OpFunctionParameter %_arr_uint_uint_1 |
| %value_param = OpFunctionParameter %mat2v3float |
| %126 = OpLabel |
| %127 = OpCompositeExtract %uint %target_indices 0 |
| %128 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %127 %uint_13 %uint_0 |
| %130 = OpCompositeExtract %v3float %value_param 0 |
| OpStore %128 %130 None |
| %131 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %127 %uint_13 %uint_1 |
| %132 = OpCompositeExtract %v3float %value_param 1 |
| OpStore %131 %132 None |
| OpReturn |
| OpFunctionEnd |
| %tint_store_and_preserve_padding_0 = OpFunction %void None %135 |
| %target_indices_0 = OpFunctionParameter %_arr_uint_uint_1 |
| %value_param_0 = OpFunctionParameter %mat3v3float |
| %136 = OpLabel |
| %137 = OpCompositeExtract %uint %target_indices_0 0 |
| %138 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %137 %uint_16 %uint_0 |
| %140 = OpCompositeExtract %v3float %value_param_0 0 |
| OpStore %138 %140 None |
| %141 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %137 %uint_16 %uint_1 |
| %142 = OpCompositeExtract %v3float %value_param_0 1 |
| OpStore %141 %142 None |
| %143 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %137 %uint_16 %uint_2 |
| %144 = OpCompositeExtract %v3float %value_param_0 2 |
| OpStore %143 %144 None |
| OpReturn |
| OpFunctionEnd |
| %tint_store_and_preserve_padding_1 = OpFunction %void None %147 |
| %target_indices_1 = OpFunctionParameter %_arr_uint_uint_1 |
| %value_param_1 = OpFunctionParameter %mat4v3float |
| %148 = OpLabel |
| %149 = OpCompositeExtract %uint %target_indices_1 0 |
| %150 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %149 %uint_19 %uint_0 |
| %152 = OpCompositeExtract %v3float %value_param_1 0 |
| OpStore %150 %152 None |
| %153 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %149 %uint_19 %uint_1 |
| %154 = OpCompositeExtract %v3float %value_param_1 1 |
| OpStore %153 %154 None |
| %155 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %149 %uint_19 %uint_2 |
| %156 = OpCompositeExtract %v3float %value_param_1 2 |
| OpStore %155 %156 None |
| %157 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %149 %uint_19 %uint_3 |
| %158 = OpCompositeExtract %v3float %value_param_1 3 |
| OpStore %157 %158 None |
| OpReturn |
| OpFunctionEnd |
| %tint_store_and_preserve_padding_2 = OpFunction %void None %161 |
| %target_indices_2 = OpFunctionParameter %_arr_uint_uint_1 |
| %value_param_2 = OpFunctionParameter %_arr_v3float_uint_2 |
| %162 = OpLabel |
| %163 = OpVariable %_ptr_Function__arr_v3float_uint_2 Function |
| OpStore %163 %value_param_2 |
| %165 = OpCompositeExtract %uint %target_indices_2 0 |
| OpBranch %166 |
| %166 = OpLabel |
| OpBranch %169 |
| %169 = OpLabel |
| %171 = OpPhi %uint %uint_0 %166 %172 %168 |
| OpLoopMerge %170 %168 None |
| OpBranch %167 |
| %167 = OpLabel |
| %173 = OpUGreaterThanEqual %bool %171 %uint_2 |
| OpSelectionMerge %175 None |
| OpBranchConditional %173 %176 %175 |
| %176 = OpLabel |
| OpBranch %170 |
| %175 = OpLabel |
| %177 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %165 %uint_21 %171 |
| %179 = OpAccessChain %_ptr_Function_v3float %163 %171 |
| %181 = OpLoad %v3float %179 None |
| OpStore %177 %181 None |
| OpBranch %168 |
| %168 = OpLabel |
| %172 = OpIAdd %uint %171 %uint_1 |
| OpBranch %169 |
| %170 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %183 |
| %184 = OpLabel |
| %185 = OpLoad %uint %main_local_invocation_index_Input None |
| %186 = OpFunctionCall %void %main_inner %185 |
| OpReturn |
| OpFunctionEnd |