| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 44 |
| ; 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" |
| %float = OpTypeFloat 32 |
| %_ptr_Private_float = OpTypePointer Private %float |
| %4 = OpConstantNull %float |
| %t = OpVariable %_ptr_Private_float Private %4 |
| %void = OpTypeVoid |
| %5 = OpTypeFunction %void |
| %v4float = OpTypeVector %float 4 |
| %mat2v4float = OpTypeMatrix %v4float 2 |
| %9 = OpTypeFunction %mat2v4float |
| %float_1 = OpConstant %float 1 |
| %float_2 = OpConstant %float 2 |
| %float_3 = OpConstant %float 3 |
| %float_4 = OpConstant %float 4 |
| %20 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4 |
| %float_5 = OpConstant %float 5 |
| %float_6 = OpConstant %float 6 |
| %float_7 = OpConstant %float 7 |
| %float_8 = OpConstant %float 8 |
| %25 = OpConstantComposite %v4float %float_5 %float_6 %float_7 %float_8 |
| %26 = OpConstantComposite %mat2v4float %20 %25 |
| %half = OpTypeFloat 16 |
| %v4half = OpTypeVector %half 4 |
| %mat2v4half = OpTypeMatrix %v4half 2 |
| %int = OpTypeInt 32 1 |
| %35 = OpConstantNull %int |
| %int_1 = OpConstant %int 1 |
| %_ptr_Function_mat2v4half = OpTypePointer Function %mat2v4half |
| %43 = OpConstantNull %mat2v4half |
| %unused_entry_point = OpFunction %void None %5 |
| %8 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %m = OpFunction %mat2v4float None %9 |
| %13 = OpLabel |
| %14 = OpLoad %float %t |
| %16 = OpFAdd %float %14 %float_1 |
| OpStore %t %16 |
| OpReturnValue %26 |
| OpFunctionEnd |
| %f = OpFunction %void None %5 |
| %28 = OpLabel |
| %v = OpVariable %_ptr_Function_mat2v4half Function %43 |
| %29 = OpFunctionCall %mat2v4float %m |
| %36 = OpCompositeExtract %v4float %29 0 |
| %33 = OpFConvert %v4half %36 |
| %39 = OpCompositeExtract %v4float %29 1 |
| %37 = OpFConvert %v4half %39 |
| %40 = OpCompositeConstruct %mat2v4half %33 %37 |
| OpStore %v %40 |
| OpReturn |
| OpFunctionEnd |