| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 45 |
| ; Schema: 0 |
| OpCapability Shader |
| %25 = OpExtInstImport "GLSL.std.450" |
| 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_block "s_block" |
| OpMemberName %s_block 0 "inner" |
| OpName %s "s" |
| 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 %_arr_mat3v3float_uint_4 ArrayStride 48 |
| 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 |
| %float = OpTypeFloat 32 |
| %v3float = OpTypeVector %float 3 |
| %mat3v3float = OpTypeMatrix %v3float 3 |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_mat3v3float_uint_4 = OpTypeArray %mat3v3float %uint_4 |
| %u_block = OpTypeStruct %_arr_mat3v3float_uint_4 |
| %_ptr_Uniform_u_block = OpTypePointer Uniform %u_block |
| %u = OpVariable %_ptr_Uniform_u_block Uniform |
| %s_block = OpTypeStruct %float |
| %_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block |
| %s = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer |
| %void = OpTypeVoid |
| %13 = OpTypeFunction %void |
| %uint_0 = OpConstant %uint 0 |
| %int = OpTypeInt 32 1 |
| %int_2 = OpConstant %int 2 |
| %_ptr_Uniform_mat3v3float = OpTypePointer Uniform %mat3v3float |
| %26 = OpConstantNull %int |
| %int_1 = OpConstant %int 1 |
| %_ptr_Uniform_v3float = OpTypePointer Uniform %v3float |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %f = OpFunction %void None %13 |
| %16 = OpLabel |
| %22 = OpAccessChain %_ptr_Uniform_mat3v3float %u %uint_0 %int_2 |
| %23 = OpLoad %mat3v3float %22 |
| %17 = OpTranspose %mat3v3float %23 |
| %29 = OpAccessChain %_ptr_Uniform_v3float %u %uint_0 %26 %int_1 |
| %30 = OpLoad %v3float %29 |
| %31 = OpVectorShuffle %v3float %30 %30 2 0 1 |
| %24 = OpExtInst %float %25 Length %31 |
| %33 = OpAccessChain %_ptr_Uniform_v3float %u %uint_0 %26 %int_1 |
| %34 = OpLoad %v3float %33 |
| %35 = OpVectorShuffle %v3float %34 %34 2 0 1 |
| %36 = OpCompositeExtract %float %35 0 |
| %32 = OpExtInst %float %25 FAbs %36 |
| %38 = OpAccessChain %_ptr_StorageBuffer_float %s %uint_0 |
| %39 = OpCompositeExtract %v3float %17 0 |
| %40 = OpCompositeExtract %float %39 0 |
| %42 = OpFAdd %float %40 %24 |
| %44 = OpFAdd %float %42 %32 |
| OpStore %38 %44 |
| OpReturn |
| OpFunctionEnd |