| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 202 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpMemberName %S_tint_explicit_layout 0 "scalar_f32" |
| OpMemberName %S_tint_explicit_layout 1 "scalar_i32" |
| OpMemberName %S_tint_explicit_layout 2 "scalar_u32" |
| OpMemberName %S_tint_explicit_layout 3 "vec2_f32" |
| OpMemberName %S_tint_explicit_layout 4 "vec2_i32" |
| OpMemberName %S_tint_explicit_layout 5 "vec2_u32" |
| OpMemberName %S_tint_explicit_layout 6 "vec3_f32" |
| OpMemberName %S_tint_explicit_layout 7 "vec3_i32" |
| OpMemberName %S_tint_explicit_layout 8 "vec3_u32" |
| OpMemberName %S_tint_explicit_layout 9 "vec4_f32" |
| OpMemberName %S_tint_explicit_layout 10 "vec4_i32" |
| OpMemberName %S_tint_explicit_layout 11 "vec4_u32" |
| OpMemberName %S_tint_explicit_layout 12 "mat2x2_f32" |
| OpMemberName %S_tint_explicit_layout 13 "mat2x3_f32" |
| OpMemberName %S_tint_explicit_layout 14 "mat2x4_f32" |
| OpMemberName %S_tint_explicit_layout 15 "mat3x2_f32" |
| OpMemberName %S_tint_explicit_layout 16 "mat3x3_f32" |
| OpMemberName %S_tint_explicit_layout 17 "mat3x4_f32" |
| OpMemberName %S_tint_explicit_layout 18 "mat4x2_f32" |
| OpMemberName %S_tint_explicit_layout 19 "mat4x3_f32" |
| OpMemberName %S_tint_explicit_layout 20 "mat4x4_f32" |
| OpMemberName %S_tint_explicit_layout 21 "arr2_vec3_f32" |
| OpMemberName %Inner 0 "scalar_i32" |
| OpMemberName %Inner 1 "scalar_f32" |
| OpName %Inner "Inner" |
| OpMemberName %S_tint_explicit_layout 22 "struct_inner" |
| OpMemberName %S_tint_explicit_layout 23 "array_struct_inner" |
| OpName %S_tint_explicit_layout "S_tint_explicit_layout" |
| OpMemberName %sb_block_tint_explicit_layout 0 "inner" |
| OpName %sb_block_tint_explicit_layout "sb_block_tint_explicit_layout" |
| OpName %main "main" |
| OpName %tint_store_and_preserve_padding "tint_store_and_preserve_padding" |
| OpName %value_param "value_param" |
| OpName %tint_store_and_preserve_padding_0 "tint_store_and_preserve_padding" |
| OpName %value_param_0 "value_param" |
| OpName %tint_store_and_preserve_padding_1 "tint_store_and_preserve_padding" |
| OpName %value_param_1 "value_param" |
| OpName %tint_store_and_preserve_padding_2 "tint_store_and_preserve_padding" |
| OpName %value_param_2 "value_param" |
| OpName %tint_convert_explicit_layout "tint_convert_explicit_layout" |
| OpName %tint_source "tint_source" |
| OpMemberDecorate %S_tint_explicit_layout 0 Offset 0 |
| OpMemberDecorate %S_tint_explicit_layout 1 Offset 4 |
| OpMemberDecorate %S_tint_explicit_layout 2 Offset 8 |
| OpMemberDecorate %S_tint_explicit_layout 3 Offset 16 |
| OpMemberDecorate %S_tint_explicit_layout 4 Offset 24 |
| OpMemberDecorate %S_tint_explicit_layout 5 Offset 32 |
| OpMemberDecorate %S_tint_explicit_layout 6 Offset 48 |
| OpMemberDecorate %S_tint_explicit_layout 7 Offset 64 |
| OpMemberDecorate %S_tint_explicit_layout 8 Offset 80 |
| OpMemberDecorate %S_tint_explicit_layout 9 Offset 96 |
| OpMemberDecorate %S_tint_explicit_layout 10 Offset 112 |
| OpMemberDecorate %S_tint_explicit_layout 11 Offset 128 |
| OpMemberDecorate %S_tint_explicit_layout 12 Offset 144 |
| OpMemberDecorate %S_tint_explicit_layout 12 ColMajor |
| OpMemberDecorate %S_tint_explicit_layout 12 MatrixStride 8 |
| OpMemberDecorate %S_tint_explicit_layout 13 Offset 160 |
| OpMemberDecorate %S_tint_explicit_layout 13 ColMajor |
| OpMemberDecorate %S_tint_explicit_layout 13 MatrixStride 16 |
| OpMemberDecorate %S_tint_explicit_layout 14 Offset 192 |
| OpMemberDecorate %S_tint_explicit_layout 14 ColMajor |
| OpMemberDecorate %S_tint_explicit_layout 14 MatrixStride 16 |
| OpMemberDecorate %S_tint_explicit_layout 15 Offset 224 |
| OpMemberDecorate %S_tint_explicit_layout 15 ColMajor |
| OpMemberDecorate %S_tint_explicit_layout 15 MatrixStride 8 |
| OpMemberDecorate %S_tint_explicit_layout 16 Offset 256 |
| OpMemberDecorate %S_tint_explicit_layout 16 ColMajor |
| OpMemberDecorate %S_tint_explicit_layout 16 MatrixStride 16 |
| OpMemberDecorate %S_tint_explicit_layout 17 Offset 304 |
| OpMemberDecorate %S_tint_explicit_layout 17 ColMajor |
| OpMemberDecorate %S_tint_explicit_layout 17 MatrixStride 16 |
| OpMemberDecorate %S_tint_explicit_layout 18 Offset 352 |
| OpMemberDecorate %S_tint_explicit_layout 18 ColMajor |
| OpMemberDecorate %S_tint_explicit_layout 18 MatrixStride 8 |
| OpMemberDecorate %S_tint_explicit_layout 19 Offset 384 |
| OpMemberDecorate %S_tint_explicit_layout 19 ColMajor |
| OpMemberDecorate %S_tint_explicit_layout 19 MatrixStride 16 |
| OpMemberDecorate %S_tint_explicit_layout 20 Offset 448 |
| OpMemberDecorate %S_tint_explicit_layout 20 ColMajor |
| OpMemberDecorate %S_tint_explicit_layout 20 MatrixStride 16 |
| OpDecorate %_arr_v3float_uint_2 ArrayStride 16 |
| OpMemberDecorate %S_tint_explicit_layout 21 Offset 512 |
| OpMemberDecorate %Inner 0 Offset 0 |
| OpMemberDecorate %Inner 1 Offset 4 |
| OpMemberDecorate %S_tint_explicit_layout 22 Offset 544 |
| OpDecorate %_arr_Inner_uint_4 ArrayStride 8 |
| OpMemberDecorate %S_tint_explicit_layout 23 Offset 552 |
| OpMemberDecorate %sb_block_tint_explicit_layout 0 Offset 0 |
| OpDecorate %sb_block_tint_explicit_layout Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 Coherent |
| %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 %int %float |
| %uint_4 = OpConstant %uint 4 |
| %_arr_Inner_uint_4 = OpTypeArray %Inner %uint_4 |
| %S_tint_explicit_layout = 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 %Inner %_arr_Inner_uint_4 |
| %sb_block_tint_explicit_layout = OpTypeStruct %S_tint_explicit_layout |
| %_ptr_StorageBuffer_sb_block_tint_explicit_layout = OpTypePointer StorageBuffer %sb_block_tint_explicit_layout |
| %1 = OpVariable %_ptr_StorageBuffer_sb_block_tint_explicit_layout StorageBuffer |
| %void = OpTypeVoid |
| %33 = OpTypeFunction %void |
| %_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 |
| %48 = OpConstantNull %v2float |
| %_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int |
| %51 = OpConstantNull %v2int |
| %_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint |
| %uint_5 = OpConstant %uint 5 |
| %55 = OpConstantNull %v2uint |
| %_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float |
| %uint_6 = OpConstant %uint 6 |
| %59 = OpConstantNull %v3float |
| %_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int |
| %uint_7 = OpConstant %uint 7 |
| %63 = OpConstantNull %v3int |
| %_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint |
| %uint_8 = OpConstant %uint 8 |
| %67 = OpConstantNull %v3uint |
| %_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float |
| %uint_9 = OpConstant %uint 9 |
| %71 = OpConstantNull %v4float |
| %_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int |
| %uint_10 = OpConstant %uint 10 |
| %75 = OpConstantNull %v4int |
| %_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint |
| %uint_11 = OpConstant %uint 11 |
| %79 = OpConstantNull %v4uint |
| %_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float |
| %uint_12 = OpConstant %uint 12 |
| %83 = OpConstantNull %mat2v2float |
| %86 = OpConstantNull %mat2v3float |
| %_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float |
| %uint_14 = OpConstant %uint 14 |
| %90 = OpConstantNull %mat2v4float |
| %_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float |
| %uint_15 = OpConstant %uint 15 |
| %94 = OpConstantNull %mat3v2float |
| %97 = OpConstantNull %mat3v3float |
| %_ptr_StorageBuffer_mat3v4float = OpTypePointer StorageBuffer %mat3v4float |
| %uint_17 = OpConstant %uint 17 |
| %101 = OpConstantNull %mat3v4float |
| %_ptr_StorageBuffer_mat4v2float = OpTypePointer StorageBuffer %mat4v2float |
| %uint_18 = OpConstant %uint 18 |
| %105 = OpConstantNull %mat4v2float |
| %108 = OpConstantNull %mat4v3float |
| %_ptr_StorageBuffer_mat4v4float = OpTypePointer StorageBuffer %mat4v4float |
| %uint_20 = OpConstant %uint 20 |
| %112 = OpConstantNull %mat4v4float |
| %_arr_v3float_uint_2_0 = OpTypeArray %v3float %uint_2 |
| %115 = OpConstantNull %_arr_v3float_uint_2_0 |
| %_ptr_StorageBuffer_Inner = OpTypePointer StorageBuffer %Inner |
| %uint_22 = OpConstant %uint 22 |
| %120 = OpConstantNull %Inner |
| %_ptr_StorageBuffer__arr_Inner_uint_4 = OpTypePointer StorageBuffer %_arr_Inner_uint_4 |
| %uint_23 = OpConstant %uint 23 |
| %_arr_Inner_uint_4_0 = OpTypeArray %Inner %uint_4 |
| %126 = OpConstantNull %_arr_Inner_uint_4_0 |
| %129 = OpTypeFunction %void %mat2v3float |
| %uint_13 = OpConstant %uint 13 |
| %137 = OpTypeFunction %void %mat3v3float |
| %uint_16 = OpConstant %uint 16 |
| %147 = OpTypeFunction %void %mat4v3float |
| %uint_19 = OpConstant %uint 19 |
| %159 = OpTypeFunction %void %_arr_v3float_uint_2_0 |
| %_ptr_Function__arr_v3float_uint_2_0 = OpTypePointer Function %_arr_v3float_uint_2_0 |
| %bool = OpTypeBool |
| %uint_21 = OpConstant %uint 21 |
| %_ptr_Function_v3float = OpTypePointer Function %v3float |
| %180 = OpTypeFunction %_arr_Inner_uint_4 %_arr_Inner_uint_4_0 |
| %_ptr_Function__arr_Inner_uint_4_0 = OpTypePointer Function %_arr_Inner_uint_4_0 |
| %_ptr_Function__arr_Inner_uint_4 = OpTypePointer Function %_arr_Inner_uint_4 |
| %186 = OpConstantNull %_arr_Inner_uint_4 |
| %_ptr_Function_Inner = OpTypePointer Function %Inner |
| %main = OpFunction %void None %33 |
| %34 = OpLabel |
| %35 = OpAccessChain %_ptr_StorageBuffer_float %1 %uint_0 %uint_0 |
| OpStore %35 %float_0 None |
| %39 = OpAccessChain %_ptr_StorageBuffer_int %1 %uint_0 %uint_1 |
| OpStore %39 %int_0 None |
| %43 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0 %uint_2 |
| OpStore %43 %uint_0 None |
| %45 = OpAccessChain %_ptr_StorageBuffer_v2float %1 %uint_0 %uint_3 |
| OpStore %45 %48 None |
| %49 = OpAccessChain %_ptr_StorageBuffer_v2int %1 %uint_0 %uint_4 |
| OpStore %49 %51 None |
| %52 = OpAccessChain %_ptr_StorageBuffer_v2uint %1 %uint_0 %uint_5 |
| OpStore %52 %55 None |
| %56 = OpAccessChain %_ptr_StorageBuffer_v3float %1 %uint_0 %uint_6 |
| OpStore %56 %59 None |
| %60 = OpAccessChain %_ptr_StorageBuffer_v3int %1 %uint_0 %uint_7 |
| OpStore %60 %63 None |
| %64 = OpAccessChain %_ptr_StorageBuffer_v3uint %1 %uint_0 %uint_8 |
| OpStore %64 %67 None |
| %68 = OpAccessChain %_ptr_StorageBuffer_v4float %1 %uint_0 %uint_9 |
| OpStore %68 %71 None |
| %72 = OpAccessChain %_ptr_StorageBuffer_v4int %1 %uint_0 %uint_10 |
| OpStore %72 %75 None |
| %76 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0 %uint_11 |
| OpStore %76 %79 None |
| %80 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %1 %uint_0 %uint_12 |
| OpStore %80 %83 None |
| %84 = OpFunctionCall %void %tint_store_and_preserve_padding %86 |
| %87 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %1 %uint_0 %uint_14 |
| OpStore %87 %90 None |
| %91 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %1 %uint_0 %uint_15 |
| OpStore %91 %94 None |
| %95 = OpFunctionCall %void %tint_store_and_preserve_padding_0 %97 |
| %98 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %1 %uint_0 %uint_17 |
| OpStore %98 %101 None |
| %102 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %1 %uint_0 %uint_18 |
| OpStore %102 %105 None |
| %106 = OpFunctionCall %void %tint_store_and_preserve_padding_1 %108 |
| %109 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %1 %uint_0 %uint_20 |
| OpStore %109 %112 None |
| %113 = OpFunctionCall %void %tint_store_and_preserve_padding_2 %115 |
| %117 = OpAccessChain %_ptr_StorageBuffer_Inner %1 %uint_0 %uint_22 |
| OpStore %117 %120 None |
| %121 = OpAccessChain %_ptr_StorageBuffer__arr_Inner_uint_4 %1 %uint_0 %uint_23 |
| %124 = OpFunctionCall %_arr_Inner_uint_4 %tint_convert_explicit_layout %126 |
| OpStore %121 %124 None |
| OpReturn |
| OpFunctionEnd |
| %tint_store_and_preserve_padding = OpFunction %void None %129 |
| %value_param = OpFunctionParameter %mat2v3float |
| %130 = OpLabel |
| %131 = OpAccessChain %_ptr_StorageBuffer_v3float %1 %uint_0 %uint_13 %uint_0 |
| %133 = OpCompositeExtract %v3float %value_param 0 |
| OpStore %131 %133 None |
| %134 = OpAccessChain %_ptr_StorageBuffer_v3float %1 %uint_0 %uint_13 %uint_1 |
| %135 = OpCompositeExtract %v3float %value_param 1 |
| OpStore %134 %135 None |
| OpReturn |
| OpFunctionEnd |
| %tint_store_and_preserve_padding_0 = OpFunction %void None %137 |
| %value_param_0 = OpFunctionParameter %mat3v3float |
| %138 = OpLabel |
| %139 = OpAccessChain %_ptr_StorageBuffer_v3float %1 %uint_0 %uint_16 %uint_0 |
| %141 = OpCompositeExtract %v3float %value_param_0 0 |
| OpStore %139 %141 None |
| %142 = OpAccessChain %_ptr_StorageBuffer_v3float %1 %uint_0 %uint_16 %uint_1 |
| %143 = OpCompositeExtract %v3float %value_param_0 1 |
| OpStore %142 %143 None |
| %144 = OpAccessChain %_ptr_StorageBuffer_v3float %1 %uint_0 %uint_16 %uint_2 |
| %145 = OpCompositeExtract %v3float %value_param_0 2 |
| OpStore %144 %145 None |
| OpReturn |
| OpFunctionEnd |
| %tint_store_and_preserve_padding_1 = OpFunction %void None %147 |
| %value_param_1 = OpFunctionParameter %mat4v3float |
| %148 = OpLabel |
| %149 = OpAccessChain %_ptr_StorageBuffer_v3float %1 %uint_0 %uint_19 %uint_0 |
| %151 = OpCompositeExtract %v3float %value_param_1 0 |
| OpStore %149 %151 None |
| %152 = OpAccessChain %_ptr_StorageBuffer_v3float %1 %uint_0 %uint_19 %uint_1 |
| %153 = OpCompositeExtract %v3float %value_param_1 1 |
| OpStore %152 %153 None |
| %154 = OpAccessChain %_ptr_StorageBuffer_v3float %1 %uint_0 %uint_19 %uint_2 |
| %155 = OpCompositeExtract %v3float %value_param_1 2 |
| OpStore %154 %155 None |
| %156 = OpAccessChain %_ptr_StorageBuffer_v3float %1 %uint_0 %uint_19 %uint_3 |
| %157 = OpCompositeExtract %v3float %value_param_1 3 |
| OpStore %156 %157 None |
| OpReturn |
| OpFunctionEnd |
| %tint_store_and_preserve_padding_2 = OpFunction %void None %159 |
| %value_param_2 = OpFunctionParameter %_arr_v3float_uint_2_0 |
| %160 = OpLabel |
| %161 = OpVariable %_ptr_Function__arr_v3float_uint_2_0 Function |
| OpStore %161 %value_param_2 |
| OpBranch %163 |
| %163 = OpLabel |
| OpBranch %166 |
| %166 = OpLabel |
| %168 = OpPhi %uint %uint_0 %163 %169 %165 |
| OpLoopMerge %167 %165 None |
| OpBranch %164 |
| %164 = OpLabel |
| %170 = OpUGreaterThanEqual %bool %168 %uint_2 |
| OpSelectionMerge %172 None |
| OpBranchConditional %170 %173 %172 |
| %173 = OpLabel |
| OpBranch %167 |
| %172 = OpLabel |
| %174 = OpAccessChain %_ptr_StorageBuffer_v3float %1 %uint_0 %uint_21 %168 |
| %176 = OpAccessChain %_ptr_Function_v3float %161 %168 |
| %178 = OpLoad %v3float %176 None |
| OpStore %174 %178 None |
| OpBranch %165 |
| %165 = OpLabel |
| %169 = OpIAdd %uint %168 %uint_1 |
| OpBranch %166 |
| %167 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %tint_convert_explicit_layout = OpFunction %_arr_Inner_uint_4 None %180 |
| %tint_source = OpFunctionParameter %_arr_Inner_uint_4_0 |
| %181 = OpLabel |
| %182 = OpVariable %_ptr_Function__arr_Inner_uint_4_0 Function |
| %184 = OpVariable %_ptr_Function__arr_Inner_uint_4 Function %186 |
| OpStore %182 %tint_source |
| OpBranch %187 |
| %187 = OpLabel |
| OpBranch %190 |
| %190 = OpLabel |
| %192 = OpPhi %uint %uint_0 %187 %193 %189 |
| OpLoopMerge %191 %189 None |
| OpBranch %188 |
| %188 = OpLabel |
| %195 = OpUGreaterThanEqual %bool %192 %uint_4 |
| OpSelectionMerge %196 None |
| OpBranchConditional %195 %197 %196 |
| %197 = OpLabel |
| OpBranch %191 |
| %196 = OpLabel |
| %198 = OpAccessChain %_ptr_Function_Inner %182 %192 |
| %200 = OpLoad %Inner %198 None |
| %201 = OpAccessChain %_ptr_Function_Inner %184 %192 |
| OpStore %201 %200 None |
| OpBranch %189 |
| %189 = OpLabel |
| %193 = OpIAdd %uint %192 %uint_1 |
| OpBranch %190 |
| %191 = OpLabel |
| %194 = OpLoad %_arr_Inner_uint_4 %184 None |
| OpReturnValue %194 |
| OpFunctionEnd |