| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 43 |
| ; 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" |
| OpMemberName %u_block_std140 2 "inner_col2" |
| 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 |
| OpMemberDecorate %u_block_std140 2 Offset 16 |
| 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 %v2float |
| %_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140 |
| %1 = OpVariable %_ptr_Uniform_u_block_std140 Uniform |
| %mat3v2float = OpTypeMatrix %v2float 3 |
| %s_block = OpTypeStruct %mat3v2float |
| %_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 |
| %uint_2 = OpConstant %uint 2 |
| %_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float |
| %_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 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_2 |
| %24 = OpLoad %v2float %22 None |
| %25 = OpCompositeConstruct %mat3v2float %18 %21 %24 |
| %26 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %6 %uint_0 |
| OpStore %26 %25 None |
| %28 = OpAccessChain %_ptr_StorageBuffer_v2float %6 %uint_0 %uint_1 |
| %30 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_0 |
| %31 = OpLoad %v2float %30 None |
| OpStore %28 %31 None |
| %32 = OpAccessChain %_ptr_StorageBuffer_v2float %6 %uint_0 %uint_1 |
| %33 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_0 |
| %34 = OpLoad %v2float %33 None |
| %35 = OpVectorShuffle %v2float %34 %34 1 0 |
| OpStore %32 %35 None |
| %36 = OpAccessChain %_ptr_StorageBuffer_v2float %6 %uint_0 %uint_0 |
| %37 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_1 |
| %38 = OpAccessChain %_ptr_Uniform_float %37 %uint_0 |
| %40 = OpLoad %float %38 None |
| %41 = OpAccessChain %_ptr_StorageBuffer_float %36 %uint_1 |
| OpStore %41 %40 None |
| OpReturn |
| OpFunctionEnd |