| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 64 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability Float16 |
| OpCapability UniformAndStorageBuffer16BitAccess |
| OpCapability StorageBuffer16BitAccess |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %u_block_std140 "u_block_std140" |
| OpMemberName %u_block_std140 0 "inner" |
| OpName %S_std140 "S_std140" |
| OpMemberName %S_std140 0 "inner" |
| OpName %Inner_std140 "Inner_std140" |
| OpMemberName %Inner_std140 0 "scalar_f16" |
| OpMemberName %Inner_std140 1 "vec3_f16" |
| OpMemberName %Inner_std140 2 "mat2x4_f16_0" |
| OpMemberName %Inner_std140 3 "mat2x4_f16_1" |
| OpName %u "u" |
| OpName %u_block "u_block" |
| OpMemberName %u_block 0 "inner" |
| OpName %S "S" |
| OpMemberName %S 0 "inner" |
| OpName %Inner "Inner" |
| OpMemberName %Inner 0 "scalar_f16" |
| OpMemberName %Inner 1 "vec3_f16" |
| OpMemberName %Inner 2 "mat2x4_f16" |
| OpName %s "s" |
| OpName %assign_and_preserve_padding_1_s_inner "assign_and_preserve_padding_1_s_inner" |
| OpName %value "value" |
| OpName %assign_and_preserve_padding_s "assign_and_preserve_padding_s" |
| OpName %value_0 "value" |
| OpName %conv_Inner "conv_Inner" |
| OpName %val "val" |
| OpName %conv_S "conv_S" |
| OpName %val_0 "val" |
| OpName %main "main" |
| OpDecorate %u_block_std140 Block |
| OpMemberDecorate %u_block_std140 0 Offset 0 |
| OpMemberDecorate %S_std140 0 Offset 0 |
| OpMemberDecorate %Inner_std140 0 Offset 0 |
| OpMemberDecorate %Inner_std140 1 Offset 8 |
| OpMemberDecorate %Inner_std140 2 Offset 16 |
| OpMemberDecorate %Inner_std140 3 Offset 24 |
| OpDecorate %u NonWritable |
| OpDecorate %u DescriptorSet 0 |
| OpDecorate %u Binding 0 |
| OpDecorate %u_block Block |
| OpMemberDecorate %u_block 0 Offset 0 |
| OpMemberDecorate %S 0 Offset 0 |
| OpMemberDecorate %Inner 0 Offset 0 |
| OpMemberDecorate %Inner 1 Offset 8 |
| OpMemberDecorate %Inner 2 Offset 16 |
| OpMemberDecorate %Inner 2 ColMajor |
| OpMemberDecorate %Inner 2 MatrixStride 8 |
| OpDecorate %s DescriptorSet 0 |
| OpDecorate %s Binding 1 |
| %half = OpTypeFloat 16 |
| %v3half = OpTypeVector %half 3 |
| %v4half = OpTypeVector %half 4 |
| %Inner_std140 = OpTypeStruct %half %v3half %v4half %v4half |
| %S_std140 = OpTypeStruct %Inner_std140 |
| %u_block_std140 = OpTypeStruct %S_std140 |
| %_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140 |
| %u = OpVariable %_ptr_Uniform_u_block_std140 Uniform |
| %mat2v4half = OpTypeMatrix %v4half 2 |
| %Inner = OpTypeStruct %half %v3half %mat2v4half |
| %S = OpTypeStruct %Inner |
| %u_block = OpTypeStruct %S |
| %_ptr_StorageBuffer_u_block = OpTypePointer StorageBuffer %u_block |
| %s = OpVariable %_ptr_StorageBuffer_u_block StorageBuffer |
| %void = OpTypeVoid |
| %15 = OpTypeFunction %void %Inner |
| %uint = OpTypeInt 32 0 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half |
| %uint_1 = OpConstant %uint 1 |
| %_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half |
| %uint_2 = OpConstant %uint 2 |
| %_ptr_StorageBuffer_mat2v4half = OpTypePointer StorageBuffer %mat2v4half |
| %33 = OpTypeFunction %void %S |
| %39 = OpTypeFunction %Inner %Inner_std140 |
| %49 = OpTypeFunction %S %S_std140 |
| %56 = OpTypeFunction %void |
| %_ptr_Uniform_S_std140 = OpTypePointer Uniform %S_std140 |
| %assign_and_preserve_padding_1_s_inner = OpFunction %void None %15 |
| %value = OpFunctionParameter %Inner |
| %19 = OpLabel |
| %23 = OpAccessChain %_ptr_StorageBuffer_half %s %uint_0 %uint_0 %uint_0 |
| %24 = OpCompositeExtract %half %value 0 |
| OpStore %23 %24 |
| %27 = OpAccessChain %_ptr_StorageBuffer_v3half %s %uint_0 %uint_0 %uint_1 |
| %28 = OpCompositeExtract %v3half %value 1 |
| OpStore %27 %28 |
| %31 = OpAccessChain %_ptr_StorageBuffer_mat2v4half %s %uint_0 %uint_0 %uint_2 |
| %32 = OpCompositeExtract %mat2v4half %value 2 |
| OpStore %31 %32 |
| OpReturn |
| OpFunctionEnd |
| %assign_and_preserve_padding_s = OpFunction %void None %33 |
| %value_0 = OpFunctionParameter %S |
| %36 = OpLabel |
| %38 = OpCompositeExtract %Inner %value_0 0 |
| %37 = OpFunctionCall %void %assign_and_preserve_padding_1_s_inner %38 |
| OpReturn |
| OpFunctionEnd |
| %conv_Inner = OpFunction %Inner None %39 |
| %val = OpFunctionParameter %Inner_std140 |
| %42 = OpLabel |
| %43 = OpCompositeExtract %half %val 0 |
| %44 = OpCompositeExtract %v3half %val 1 |
| %45 = OpCompositeExtract %v4half %val 2 |
| %46 = OpCompositeExtract %v4half %val 3 |
| %47 = OpCompositeConstruct %mat2v4half %45 %46 |
| %48 = OpCompositeConstruct %Inner %43 %44 %47 |
| OpReturnValue %48 |
| OpFunctionEnd |
| %conv_S = OpFunction %S None %49 |
| %val_0 = OpFunctionParameter %S_std140 |
| %52 = OpLabel |
| %54 = OpCompositeExtract %Inner_std140 %val_0 0 |
| %53 = OpFunctionCall %Inner %conv_Inner %54 |
| %55 = OpCompositeConstruct %S %53 |
| OpReturnValue %55 |
| OpFunctionEnd |
| %main = OpFunction %void None %56 |
| %58 = OpLabel |
| %61 = OpAccessChain %_ptr_Uniform_S_std140 %u %uint_0 |
| %62 = OpLoad %S_std140 %61 |
| %59 = OpFunctionCall %S %conv_S %62 |
| %63 = OpFunctionCall %void %assign_and_preserve_padding_s %59 |
| OpReturn |
| OpFunctionEnd |