| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 46 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability Float16 |
| OpCapability UniformAndStorageBuffer16BitAccess |
| OpCapability StorageBuffer16BitAccess |
| OpCapability StorageInputOutput16 |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %unused_entry_point "unused_entry_point" |
| OpExecutionMode %unused_entry_point LocalSize 1 1 1 |
| OpName %t "t" |
| OpName %unused_entry_point "unused_entry_point" |
| OpName %m "m" |
| OpName %f "f" |
| OpName %v "v" |
| %half = OpTypeFloat 16 |
| %_ptr_Private_half = OpTypePointer Private %half |
| %4 = OpConstantNull %half |
| %t = OpVariable %_ptr_Private_half Private %4 |
| %void = OpTypeVoid |
| %5 = OpTypeFunction %void |
| %v2half = OpTypeVector %half 2 |
| %mat3v2half = OpTypeMatrix %v2half 3 |
| %9 = OpTypeFunction %mat3v2half |
| %half_0x1p_0 = OpConstant %half 0x1p+0 |
| %half_0x1p_1 = OpConstant %half 0x1p+1 |
| %18 = OpConstantComposite %v2half %half_0x1p_0 %half_0x1p_1 |
| %half_0x1_8p_1 = OpConstant %half 0x1.8p+1 |
| %half_0x1p_2 = OpConstant %half 0x1p+2 |
| %21 = OpConstantComposite %v2half %half_0x1_8p_1 %half_0x1p_2 |
| %half_0x1_4p_2 = OpConstant %half 0x1.4p+2 |
| %half_0x1_8p_2 = OpConstant %half 0x1.8p+2 |
| %24 = OpConstantComposite %v2half %half_0x1_4p_2 %half_0x1_8p_2 |
| %25 = OpConstantComposite %mat3v2half %18 %21 %24 |
| %float = OpTypeFloat 32 |
| %v2float = OpTypeVector %float 2 |
| %mat3v2float = OpTypeMatrix %v2float 3 |
| %int = OpTypeInt 32 1 |
| %34 = OpConstantNull %int |
| %int_1 = OpConstant %int 1 |
| %int_2 = OpConstant %int 2 |
| %_ptr_Function_mat3v2float = OpTypePointer Function %mat3v2float |
| %45 = OpConstantNull %mat3v2float |
| %unused_entry_point = OpFunction %void None %5 |
| %8 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %m = OpFunction %mat3v2half None %9 |
| %13 = OpLabel |
| %14 = OpLoad %half %t |
| %16 = OpFAdd %half %14 %half_0x1p_0 |
| OpStore %t %16 |
| OpReturnValue %25 |
| OpFunctionEnd |
| %f = OpFunction %void None %5 |
| %27 = OpLabel |
| %v = OpVariable %_ptr_Function_mat3v2float Function %45 |
| %28 = OpFunctionCall %mat3v2half %m |
| %35 = OpCompositeExtract %v2half %28 0 |
| %32 = OpFConvert %v2float %35 |
| %38 = OpCompositeExtract %v2half %28 1 |
| %36 = OpFConvert %v2float %38 |
| %41 = OpCompositeExtract %v2half %28 2 |
| %39 = OpFConvert %v2float %41 |
| %42 = OpCompositeConstruct %mat3v2float %32 %36 %39 |
| OpStore %v %42 |
| OpReturn |
| OpFunctionEnd |