| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 50 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %f "f" |
| OpExecutionMode %f LocalSize 1 1 1 |
| OpName %u_block "u_block" |
| OpMemberName %u_block 0 "inner" |
| OpName %u "u" |
| OpName %s "s" |
| OpName %assign_and_preserve_padding_s "assign_and_preserve_padding_s" |
| OpName %value "value" |
| OpName %f "f" |
| OpDecorate %u_block Block |
| OpMemberDecorate %u_block 0 Offset 0 |
| OpMemberDecorate %u_block 0 ColMajor |
| OpMemberDecorate %u_block 0 MatrixStride 16 |
| OpDecorate %u NonWritable |
| OpDecorate %u DescriptorSet 0 |
| OpDecorate %u Binding 0 |
| OpDecorate %s DescriptorSet 0 |
| OpDecorate %s Binding 1 |
| %float = OpTypeFloat 32 |
| %v3float = OpTypeVector %float 3 |
| %mat3v3float = OpTypeMatrix %v3float 3 |
| %u_block = OpTypeStruct %mat3v3float |
| %_ptr_Uniform_u_block = OpTypePointer Uniform %u_block |
| %u = OpVariable %_ptr_Uniform_u_block Uniform |
| %_ptr_StorageBuffer_u_block = OpTypePointer StorageBuffer %u_block |
| %s = OpVariable %_ptr_StorageBuffer_u_block StorageBuffer |
| %void = OpTypeVoid |
| %9 = OpTypeFunction %void %mat3v3float |
| %uint = OpTypeInt 32 0 |
| %uint_0 = OpConstant %uint 0 |
| %int = OpTypeInt 32 1 |
| %17 = OpConstantNull %int |
| %_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float |
| %20 = OpConstantNull %uint |
| %int_1 = OpConstant %int 1 |
| %uint_1 = OpConstant %uint 1 |
| %int_2 = OpConstant %int 2 |
| %uint_2 = OpConstant %uint 2 |
| %30 = OpTypeFunction %void |
| %_ptr_Uniform_mat3v3float = OpTypePointer Uniform %mat3v3float |
| %_ptr_Uniform_v3float = OpTypePointer Uniform %v3float |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %assign_and_preserve_padding_s = OpFunction %void None %9 |
| %value = OpFunctionParameter %mat3v3float |
| %13 = OpLabel |
| %19 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %17 |
| %21 = OpCompositeExtract %v3float %value 0 |
| OpStore %19 %21 |
| %23 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %int_1 |
| %25 = OpCompositeExtract %v3float %value 1 |
| OpStore %23 %25 |
| %27 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %int_2 |
| %29 = OpCompositeExtract %v3float %value 2 |
| OpStore %27 %29 |
| OpReturn |
| OpFunctionEnd |
| %f = OpFunction %void None %30 |
| %32 = OpLabel |
| %35 = OpAccessChain %_ptr_Uniform_mat3v3float %u %uint_0 |
| %36 = OpLoad %mat3v3float %35 |
| %33 = OpFunctionCall %void %assign_and_preserve_padding_s %36 |
| %37 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %int_1 |
| %39 = OpAccessChain %_ptr_Uniform_v3float %u %uint_0 %17 |
| %40 = OpLoad %v3float %39 |
| OpStore %37 %40 |
| %41 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %int_1 |
| %42 = OpAccessChain %_ptr_Uniform_v3float %u %uint_0 %17 |
| %43 = OpLoad %v3float %42 |
| %44 = OpVectorShuffle %v3float %43 %43 2 0 1 |
| OpStore %41 %44 |
| %46 = OpAccessChain %_ptr_StorageBuffer_float %s %uint_0 %17 %int_1 |
| %48 = OpAccessChain %_ptr_Uniform_float %u %uint_0 %int_1 %17 |
| %49 = OpLoad %float %48 |
| OpStore %46 %49 |
| OpReturn |
| OpFunctionEnd |