| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 95 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %f "f" |
| OpExecutionMode %f LocalSize 1 1 1 |
| OpName %u_block_std140 "u_block_std140" |
| OpMemberName %u_block_std140 0 "inner" |
| OpName %mat4x2_f32 "mat4x2_f32" |
| OpMemberName %mat4x2_f32 0 "col0" |
| OpMemberName %mat4x2_f32 1 "col1" |
| OpMemberName %mat4x2_f32 2 "col2" |
| OpMemberName %mat4x2_f32 3 "col3" |
| OpName %u "u" |
| OpName %s_block "s_block" |
| OpMemberName %s_block 0 "inner" |
| OpName %s "s" |
| OpName %p "p" |
| OpName %conv_mat4x2_f32 "conv_mat4x2_f32" |
| OpName %val "val" |
| OpName %conv_arr4_mat4x2_f32 "conv_arr4_mat4x2_f32" |
| OpName %val_0 "val" |
| OpName %arr "arr" |
| OpName %i "i" |
| OpName %var_for_index "var_for_index" |
| OpName %f "f" |
| OpDecorate %u_block_std140 Block |
| OpMemberDecorate %u_block_std140 0 Offset 0 |
| OpMemberDecorate %mat4x2_f32 0 Offset 0 |
| OpMemberDecorate %mat4x2_f32 1 Offset 8 |
| OpMemberDecorate %mat4x2_f32 2 Offset 16 |
| OpMemberDecorate %mat4x2_f32 3 Offset 24 |
| OpDecorate %_arr_mat4x2_f32_uint_4 ArrayStride 32 |
| OpDecorate %u NonWritable |
| OpDecorate %u DescriptorSet 0 |
| OpDecorate %u Binding 0 |
| OpDecorate %s_block Block |
| OpMemberDecorate %s_block 0 Offset 0 |
| OpDecorate %s DescriptorSet 0 |
| OpDecorate %s Binding 1 |
| OpDecorate %_arr_mat4v2float_uint_4 ArrayStride 32 |
| %float = OpTypeFloat 32 |
| %v2float = OpTypeVector %float 2 |
| %mat4x2_f32 = OpTypeStruct %v2float %v2float %v2float %v2float |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_mat4x2_f32_uint_4 = OpTypeArray %mat4x2_f32 %uint_4 |
| %u_block_std140 = OpTypeStruct %_arr_mat4x2_f32_uint_4 |
| %_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140 |
| %u = OpVariable %_ptr_Uniform_u_block_std140 Uniform |
| %s_block = OpTypeStruct %float |
| %_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block |
| %s = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer |
| %mat4v2float = OpTypeMatrix %v2float 4 |
| %_arr_mat4v2float_uint_4 = OpTypeArray %mat4v2float %uint_4 |
| %_ptr_Private__arr_mat4v2float_uint_4 = OpTypePointer Private %_arr_mat4v2float_uint_4 |
| %17 = OpConstantNull %_arr_mat4v2float_uint_4 |
| %p = OpVariable %_ptr_Private__arr_mat4v2float_uint_4 Private %17 |
| %18 = OpTypeFunction %mat4v2float %mat4x2_f32 |
| %27 = OpTypeFunction %_arr_mat4v2float_uint_4 %_arr_mat4x2_f32_uint_4 |
| %_ptr_Function__arr_mat4v2float_uint_4 = OpTypePointer Function %_arr_mat4v2float_uint_4 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %35 = OpConstantNull %uint |
| %bool = OpTypeBool |
| %_ptr_Function__arr_mat4x2_f32_uint_4 = OpTypePointer Function %_arr_mat4x2_f32_uint_4 |
| %48 = OpConstantNull %_arr_mat4x2_f32_uint_4 |
| %_ptr_Function_mat4v2float = OpTypePointer Function %mat4v2float |
| %_ptr_Function_mat4x2_f32 = OpTypePointer Function %mat4x2_f32 |
| %uint_1 = OpConstant %uint 1 |
| %void = OpTypeVoid |
| %61 = OpTypeFunction %void |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform__arr_mat4x2_f32_uint_4 = OpTypePointer Uniform %_arr_mat4x2_f32_uint_4 |
| %int = OpTypeInt 32 1 |
| %int_1 = OpConstant %int 1 |
| %_ptr_Private_mat4v2float = OpTypePointer Private %mat4v2float |
| %uint_2 = OpConstant %uint 2 |
| %_ptr_Uniform_mat4x2_f32 = OpTypePointer Uniform %mat4x2_f32 |
| %79 = OpConstantNull %int |
| %_ptr_Private_v2float = OpTypePointer Private %v2float |
| %_ptr_Uniform_v2float = OpTypePointer Uniform %v2float |
| %_ptr_Private_float = OpTypePointer Private %float |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %conv_mat4x2_f32 = OpFunction %mat4v2float None %18 |
| %val = OpFunctionParameter %mat4x2_f32 |
| %21 = OpLabel |
| %22 = OpCompositeExtract %v2float %val 0 |
| %23 = OpCompositeExtract %v2float %val 1 |
| %24 = OpCompositeExtract %v2float %val 2 |
| %25 = OpCompositeExtract %v2float %val 3 |
| %26 = OpCompositeConstruct %mat4v2float %22 %23 %24 %25 |
| OpReturnValue %26 |
| OpFunctionEnd |
| %conv_arr4_mat4x2_f32 = OpFunction %_arr_mat4v2float_uint_4 None %27 |
| %val_0 = OpFunctionParameter %_arr_mat4x2_f32_uint_4 |
| %30 = OpLabel |
| %arr = OpVariable %_ptr_Function__arr_mat4v2float_uint_4 Function %17 |
| %i = OpVariable %_ptr_Function_uint Function %35 |
| %var_for_index = OpVariable %_ptr_Function__arr_mat4x2_f32_uint_4 Function %48 |
| OpBranch %36 |
| %36 = OpLabel |
| OpLoopMerge %37 %38 None |
| OpBranch %39 |
| %39 = OpLabel |
| %41 = OpLoad %uint %i |
| %42 = OpULessThan %bool %41 %uint_4 |
| %40 = OpLogicalNot %bool %42 |
| OpSelectionMerge %44 None |
| OpBranchConditional %40 %45 %44 |
| %45 = OpLabel |
| OpBranch %37 |
| %44 = OpLabel |
| OpStore %var_for_index %val_0 |
| %49 = OpLoad %uint %i |
| %51 = OpAccessChain %_ptr_Function_mat4v2float %arr %49 |
| %53 = OpLoad %uint %i |
| %55 = OpAccessChain %_ptr_Function_mat4x2_f32 %var_for_index %53 |
| %56 = OpLoad %mat4x2_f32 %55 |
| %52 = OpFunctionCall %mat4v2float %conv_mat4x2_f32 %56 |
| OpStore %51 %52 |
| OpBranch %38 |
| %38 = OpLabel |
| %57 = OpLoad %uint %i |
| %59 = OpIAdd %uint %57 %uint_1 |
| OpStore %i %59 |
| OpBranch %36 |
| %37 = OpLabel |
| %60 = OpLoad %_arr_mat4v2float_uint_4 %arr |
| OpReturnValue %60 |
| OpFunctionEnd |
| %f = OpFunction %void None %61 |
| %64 = OpLabel |
| %68 = OpAccessChain %_ptr_Uniform__arr_mat4x2_f32_uint_4 %u %uint_0 |
| %69 = OpLoad %_arr_mat4x2_f32_uint_4 %68 |
| %65 = OpFunctionCall %_arr_mat4v2float_uint_4 %conv_arr4_mat4x2_f32 %69 |
| OpStore %p %65 |
| %73 = OpAccessChain %_ptr_Private_mat4v2float %p %int_1 |
| %77 = OpAccessChain %_ptr_Uniform_mat4x2_f32 %u %uint_0 %uint_2 |
| %78 = OpLoad %mat4x2_f32 %77 |
| %74 = OpFunctionCall %mat4v2float %conv_mat4x2_f32 %78 |
| OpStore %73 %74 |
| %81 = OpAccessChain %_ptr_Private_v2float %p %int_1 %79 |
| %83 = OpAccessChain %_ptr_Uniform_v2float %u %uint_0 %35 %uint_1 |
| %84 = OpLoad %v2float %83 |
| %85 = OpVectorShuffle %v2float %84 %84 1 0 |
| OpStore %81 %85 |
| %87 = OpAccessChain %_ptr_Private_float %p %int_1 %79 %uint_0 |
| %89 = OpAccessChain %_ptr_Uniform_float %u %uint_0 %35 %uint_1 %35 |
| %90 = OpLoad %float %89 |
| OpStore %87 %90 |
| %92 = OpAccessChain %_ptr_StorageBuffer_float %s %uint_0 |
| %93 = OpAccessChain %_ptr_Private_float %p %int_1 %79 %uint_0 |
| %94 = OpLoad %float %93 |
| OpStore %92 %94 |
| OpReturn |
| OpFunctionEnd |