| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 184 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %sb_block "sb_block" |
| OpMemberName %sb_block 0 "inner" |
| OpName %S "S" |
| OpMemberName %S 0 "scalar_f32" |
| OpMemberName %S 1 "scalar_i32" |
| OpMemberName %S 2 "scalar_u32" |
| OpMemberName %S 3 "vec2_f32" |
| OpMemberName %S 4 "vec2_i32" |
| OpMemberName %S 5 "vec2_u32" |
| OpMemberName %S 6 "vec3_f32" |
| OpMemberName %S 7 "vec3_i32" |
| OpMemberName %S 8 "vec3_u32" |
| OpMemberName %S 9 "vec4_f32" |
| OpMemberName %S 10 "vec4_i32" |
| OpMemberName %S 11 "vec4_u32" |
| OpMemberName %S 12 "mat2x2_f32" |
| OpMemberName %S 13 "mat2x3_f32" |
| OpMemberName %S 14 "mat2x4_f32" |
| OpMemberName %S 15 "mat3x2_f32" |
| OpMemberName %S 16 "mat3x3_f32" |
| OpMemberName %S 17 "mat3x4_f32" |
| OpMemberName %S 18 "mat4x2_f32" |
| OpMemberName %S 19 "mat4x3_f32" |
| OpMemberName %S 20 "mat4x4_f32" |
| OpMemberName %S 21 "arr2_vec3_f32" |
| OpMemberName %S 22 "struct_inner" |
| OpName %Inner "Inner" |
| OpMemberName %Inner 0 "scalar_i32" |
| OpMemberName %Inner 1 "scalar_f32" |
| OpMemberName %S 23 "array_struct_inner" |
| OpName %sb "sb" |
| OpName %assign_and_preserve_padding_sb_mat2x3_f32 "assign_and_preserve_padding_sb_mat2x3_f32" |
| OpName %value "value" |
| OpName %assign_and_preserve_padding_1_sb_mat3x3_f32 "assign_and_preserve_padding_1_sb_mat3x3_f32" |
| OpName %value_0 "value" |
| OpName %assign_and_preserve_padding_2_sb_mat4x3_f32 "assign_and_preserve_padding_2_sb_mat4x3_f32" |
| OpName %value_1 "value" |
| OpName %assign_and_preserve_padding_3_sb_arr2_vec3_f32 "assign_and_preserve_padding_3_sb_arr2_vec3_f32" |
| OpName %value_2 "value" |
| OpName %i "i" |
| OpName %var_for_index "var_for_index" |
| OpName %main "main" |
| OpDecorate %sb_block Block |
| OpMemberDecorate %sb_block 0 Offset 0 |
| OpMemberDecorate %S 0 Offset 0 |
| OpMemberDecorate %S 1 Offset 4 |
| OpMemberDecorate %S 2 Offset 8 |
| OpMemberDecorate %S 3 Offset 16 |
| OpMemberDecorate %S 4 Offset 24 |
| OpMemberDecorate %S 5 Offset 32 |
| OpMemberDecorate %S 6 Offset 48 |
| OpMemberDecorate %S 7 Offset 64 |
| OpMemberDecorate %S 8 Offset 80 |
| OpMemberDecorate %S 9 Offset 96 |
| OpMemberDecorate %S 10 Offset 112 |
| OpMemberDecorate %S 11 Offset 128 |
| OpMemberDecorate %S 12 Offset 144 |
| OpMemberDecorate %S 12 ColMajor |
| OpMemberDecorate %S 12 MatrixStride 8 |
| OpMemberDecorate %S 13 Offset 160 |
| OpMemberDecorate %S 13 ColMajor |
| OpMemberDecorate %S 13 MatrixStride 16 |
| OpMemberDecorate %S 14 Offset 192 |
| OpMemberDecorate %S 14 ColMajor |
| OpMemberDecorate %S 14 MatrixStride 16 |
| OpMemberDecorate %S 15 Offset 224 |
| OpMemberDecorate %S 15 ColMajor |
| OpMemberDecorate %S 15 MatrixStride 8 |
| OpMemberDecorate %S 16 Offset 256 |
| OpMemberDecorate %S 16 ColMajor |
| OpMemberDecorate %S 16 MatrixStride 16 |
| OpMemberDecorate %S 17 Offset 304 |
| OpMemberDecorate %S 17 ColMajor |
| OpMemberDecorate %S 17 MatrixStride 16 |
| OpMemberDecorate %S 18 Offset 352 |
| OpMemberDecorate %S 18 ColMajor |
| OpMemberDecorate %S 18 MatrixStride 8 |
| OpMemberDecorate %S 19 Offset 384 |
| OpMemberDecorate %S 19 ColMajor |
| OpMemberDecorate %S 19 MatrixStride 16 |
| OpMemberDecorate %S 20 Offset 448 |
| OpMemberDecorate %S 20 ColMajor |
| OpMemberDecorate %S 20 MatrixStride 16 |
| OpMemberDecorate %S 21 Offset 512 |
| OpDecorate %_arr_v3float_uint_2 ArrayStride 16 |
| OpMemberDecorate %S 22 Offset 544 |
| OpMemberDecorate %Inner 0 Offset 0 |
| OpMemberDecorate %Inner 1 Offset 4 |
| OpMemberDecorate %S 23 Offset 552 |
| OpDecorate %_arr_Inner_uint_4 ArrayStride 8 |
| OpDecorate %sb Binding 0 |
| OpDecorate %sb DescriptorSet 0 |
| %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 = 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 = OpTypeStruct %S |
| %_ptr_StorageBuffer_sb_block = OpTypePointer StorageBuffer %sb_block |
| %sb = OpVariable %_ptr_StorageBuffer_sb_block StorageBuffer |
| %void = OpTypeVoid |
| %31 = OpTypeFunction %void %mat2v3float |
| %uint_0 = OpConstant %uint 0 |
| %uint_13 = OpConstant %uint 13 |
| %38 = OpConstantNull %int |
| %_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float |
| %41 = OpConstantNull %uint |
| %int_1 = OpConstant %int 1 |
| %uint_1 = OpConstant %uint 1 |
| %47 = OpTypeFunction %void %mat3v3float |
| %uint_16 = OpConstant %uint 16 |
| %int_2 = OpConstant %int 2 |
| %59 = OpTypeFunction %void %mat4v3float |
| %uint_19 = OpConstant %uint 19 |
| %int_3 = OpConstant %int 3 |
| %uint_3 = OpConstant %uint 3 |
| %74 = OpTypeFunction %void %_arr_v3float_uint_2 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %bool = OpTypeBool |
| %_ptr_Function__arr_v3float_uint_2 = OpTypePointer Function %_arr_v3float_uint_2 |
| %92 = OpConstantNull %_arr_v3float_uint_2 |
| %uint_21 = OpConstant %uint 21 |
| %_ptr_Function_v3float = OpTypePointer Function %v3float |
| %102 = OpTypeFunction %void |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %107 = OpConstantNull %float |
| %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| %_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float |
| %114 = OpConstantNull %v2float |
| %_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int |
| %117 = OpConstantNull %v2int |
| %uint_5 = OpConstant %uint 5 |
| %_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint |
| %121 = OpConstantNull %v2uint |
| %uint_6 = OpConstant %uint 6 |
| %124 = OpConstantNull %v3float |
| %uint_7 = OpConstant %uint 7 |
| %_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int |
| %128 = OpConstantNull %v3int |
| %uint_8 = OpConstant %uint 8 |
| %_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint |
| %132 = OpConstantNull %v3uint |
| %uint_9 = OpConstant %uint 9 |
| %_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float |
| %136 = OpConstantNull %v4float |
| %uint_10 = OpConstant %uint 10 |
| %_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int |
| %140 = OpConstantNull %v4int |
| %uint_11 = OpConstant %uint 11 |
| %_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint |
| %144 = OpConstantNull %v4uint |
| %uint_12 = OpConstant %uint 12 |
| %_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float |
| %148 = OpConstantNull %mat2v2float |
| %150 = OpConstantNull %mat2v3float |
| %uint_14 = OpConstant %uint 14 |
| %_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float |
| %154 = OpConstantNull %mat2v4float |
| %uint_15 = OpConstant %uint 15 |
| %_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float |
| %158 = OpConstantNull %mat3v2float |
| %160 = OpConstantNull %mat3v3float |
| %uint_17 = OpConstant %uint 17 |
| %_ptr_StorageBuffer_mat3v4float = OpTypePointer StorageBuffer %mat3v4float |
| %164 = OpConstantNull %mat3v4float |
| %uint_18 = OpConstant %uint 18 |
| %_ptr_StorageBuffer_mat4v2float = OpTypePointer StorageBuffer %mat4v2float |
| %168 = OpConstantNull %mat4v2float |
| %170 = OpConstantNull %mat4v3float |
| %uint_20 = OpConstant %uint 20 |
| %_ptr_StorageBuffer_mat4v4float = OpTypePointer StorageBuffer %mat4v4float |
| %174 = OpConstantNull %mat4v4float |
| %uint_22 = OpConstant %uint 22 |
| %_ptr_StorageBuffer_Inner = OpTypePointer StorageBuffer %Inner |
| %179 = OpConstantNull %Inner |
| %uint_23 = OpConstant %uint 23 |
| %_ptr_StorageBuffer__arr_Inner_uint_4 = OpTypePointer StorageBuffer %_arr_Inner_uint_4 |
| %183 = OpConstantNull %_arr_Inner_uint_4 |
| %assign_and_preserve_padding_sb_mat2x3_f32 = OpFunction %void None %31 |
| %value = OpFunctionParameter %mat2v3float |
| %35 = OpLabel |
| %40 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_13 %38 |
| %42 = OpCompositeExtract %v3float %value 0 |
| OpStore %40 %42 |
| %44 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_13 %int_1 |
| %46 = OpCompositeExtract %v3float %value 1 |
| OpStore %44 %46 |
| OpReturn |
| OpFunctionEnd |
| %assign_and_preserve_padding_1_sb_mat3x3_f32 = OpFunction %void None %47 |
| %value_0 = OpFunctionParameter %mat3v3float |
| %50 = OpLabel |
| %52 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_16 %38 |
| %53 = OpCompositeExtract %v3float %value_0 0 |
| OpStore %52 %53 |
| %54 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_16 %int_1 |
| %55 = OpCompositeExtract %v3float %value_0 1 |
| OpStore %54 %55 |
| %57 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_16 %int_2 |
| %58 = OpCompositeExtract %v3float %value_0 2 |
| OpStore %57 %58 |
| OpReturn |
| OpFunctionEnd |
| %assign_and_preserve_padding_2_sb_mat4x3_f32 = OpFunction %void None %59 |
| %value_1 = OpFunctionParameter %mat4v3float |
| %62 = OpLabel |
| %64 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_19 %38 |
| %65 = OpCompositeExtract %v3float %value_1 0 |
| OpStore %64 %65 |
| %66 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_19 %int_1 |
| %67 = OpCompositeExtract %v3float %value_1 1 |
| OpStore %66 %67 |
| %68 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_19 %int_2 |
| %69 = OpCompositeExtract %v3float %value_1 2 |
| OpStore %68 %69 |
| %71 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_19 %int_3 |
| %73 = OpCompositeExtract %v3float %value_1 3 |
| OpStore %71 %73 |
| OpReturn |
| OpFunctionEnd |
| %assign_and_preserve_padding_3_sb_arr2_vec3_f32 = OpFunction %void None %74 |
| %value_2 = OpFunctionParameter %_arr_v3float_uint_2 |
| %77 = OpLabel |
| %i = OpVariable %_ptr_Function_uint Function %41 |
| %var_for_index = OpVariable %_ptr_Function__arr_v3float_uint_2 Function %92 |
| OpStore %i %41 |
| OpBranch %80 |
| %80 = OpLabel |
| OpLoopMerge %81 %82 None |
| OpBranch %83 |
| %83 = OpLabel |
| %85 = OpLoad %uint %i |
| %86 = OpULessThan %bool %85 %uint_2 |
| %84 = OpLogicalNot %bool %86 |
| OpSelectionMerge %88 None |
| OpBranchConditional %84 %89 %88 |
| %89 = OpLabel |
| OpBranch %81 |
| %88 = OpLabel |
| OpStore %var_for_index %value_2 |
| %94 = OpLoad %uint %i |
| %95 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_21 %94 |
| %96 = OpLoad %uint %i |
| %98 = OpAccessChain %_ptr_Function_v3float %var_for_index %96 |
| %99 = OpLoad %v3float %98 |
| OpStore %95 %99 |
| OpBranch %82 |
| %82 = OpLabel |
| %100 = OpLoad %uint %i |
| %101 = OpIAdd %uint %100 %uint_1 |
| OpStore %i %101 |
| OpBranch %80 |
| %81 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %102 |
| %104 = OpLabel |
| %106 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_0 |
| OpStore %106 %107 |
| %109 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_1 |
| OpStore %109 %38 |
| %111 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %uint_2 |
| OpStore %111 %41 |
| %113 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %uint_3 |
| OpStore %113 %114 |
| %116 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %uint_4 |
| OpStore %116 %117 |
| %120 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %uint_5 |
| OpStore %120 %121 |
| %123 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_6 |
| OpStore %123 %124 |
| %127 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %uint_7 |
| OpStore %127 %128 |
| %131 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %uint_8 |
| OpStore %131 %132 |
| %135 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %uint_9 |
| OpStore %135 %136 |
| %139 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %uint_10 |
| OpStore %139 %140 |
| %143 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %uint_11 |
| OpStore %143 %144 |
| %147 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %uint_12 |
| OpStore %147 %148 |
| %149 = OpFunctionCall %void %assign_and_preserve_padding_sb_mat2x3_f32 %150 |
| %153 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %uint_14 |
| OpStore %153 %154 |
| %157 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %uint_15 |
| OpStore %157 %158 |
| %159 = OpFunctionCall %void %assign_and_preserve_padding_1_sb_mat3x3_f32 %160 |
| %163 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %uint_17 |
| OpStore %163 %164 |
| %167 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %uint_18 |
| OpStore %167 %168 |
| %169 = OpFunctionCall %void %assign_and_preserve_padding_2_sb_mat4x3_f32 %170 |
| %173 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %uint_20 |
| OpStore %173 %174 |
| %175 = OpFunctionCall %void %assign_and_preserve_padding_3_sb_arr2_vec3_f32 %92 |
| %178 = OpAccessChain %_ptr_StorageBuffer_Inner %sb %uint_0 %uint_22 |
| OpStore %178 %179 |
| %182 = OpAccessChain %_ptr_StorageBuffer__arr_Inner_uint_4 %sb %uint_0 %uint_23 |
| OpStore %182 %183 |
| OpReturn |
| OpFunctionEnd |