| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 40 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %f "f" |
| OpExecutionMode %f LocalSize 1 1 1 |
| OpMemberName %u_block_std140 0 "inner_col0" |
| OpMemberName %u_block_std140 1 "inner_col1" |
| OpName %u_block_std140 "u_block_std140" |
| OpMemberName %s_block 0 "inner" |
| OpName %s_block "s_block" |
| OpName %f "f" |
| OpMemberDecorate %u_block_std140 0 Offset 0 |
| OpMemberDecorate %u_block_std140 1 Offset 8 |
| OpDecorate %u_block_std140 Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 NonWritable |
| OpMemberDecorate %s_block 0 Offset 0 |
| OpMemberDecorate %s_block 0 ColMajor |
| OpMemberDecorate %s_block 0 MatrixStride 8 |
| OpDecorate %s_block Block |
| OpDecorate %6 DescriptorSet 0 |
| OpDecorate %6 Binding 1 |
| OpDecorate %6 Coherent |
| %float = OpTypeFloat 32 |
| %v2float = OpTypeVector %float 2 |
| %u_block_std140 = OpTypeStruct %v2float %v2float |
| %_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140 |
| %1 = OpVariable %_ptr_Uniform_u_block_std140 Uniform |
| %mat2v2float = OpTypeMatrix %v2float 2 |
| %s_block = OpTypeStruct %mat2v2float |
| %_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block |
| %6 = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer |
| %void = OpTypeVoid |
| %12 = OpTypeFunction %void |
| %_ptr_Uniform_v2float = OpTypePointer Uniform %v2float |
| %uint = OpTypeInt 32 0 |
| %uint_0 = OpConstant %uint 0 |
| %uint_1 = OpConstant %uint 1 |
| %_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float |
| %_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %f = OpFunction %void None %12 |
| %13 = OpLabel |
| %14 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_0 |
| %18 = OpLoad %v2float %14 None |
| %19 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_1 |
| %21 = OpLoad %v2float %19 None |
| %22 = OpCompositeConstruct %mat2v2float %18 %21 |
| %23 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %6 %uint_0 |
| OpStore %23 %22 None |
| %25 = OpAccessChain %_ptr_StorageBuffer_v2float %6 %uint_0 %uint_1 |
| %27 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_0 |
| %28 = OpLoad %v2float %27 None |
| OpStore %25 %28 None |
| %29 = OpAccessChain %_ptr_StorageBuffer_v2float %6 %uint_0 %uint_1 |
| %30 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_0 |
| %31 = OpLoad %v2float %30 None |
| %32 = OpVectorShuffle %v2float %31 %31 1 0 |
| OpStore %29 %32 None |
| %33 = OpAccessChain %_ptr_StorageBuffer_v2float %6 %uint_0 %uint_0 |
| %34 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_1 |
| %35 = OpAccessChain %_ptr_Uniform_float %34 %uint_0 |
| %37 = OpLoad %float %35 None |
| %38 = OpAccessChain %_ptr_StorageBuffer_float %33 %uint_1 |
| OpStore %38 %37 None |
| OpReturn |
| OpFunctionEnd |