| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 42 |
| ; 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 |
| %v3float = OpTypeVector %float 3 |
| %mat2v3float = OpTypeMatrix %v3float 2 |
| %9 = OpTypeFunction %mat2v3float |
| %float_1 = OpConstant %float 1 |
| %float_2 = OpConstant %float 2 |
| %float_3 = OpConstant %float 3 |
| %19 = OpConstantComposite %v3float %float_1 %float_2 %float_3 |
| %float_4 = OpConstant %float 4 |
| %float_5 = OpConstant %float 5 |
| %float_6 = OpConstant %float 6 |
| %23 = OpConstantComposite %v3float %float_4 %float_5 %float_6 |
| %24 = OpConstantComposite %mat2v3float %19 %23 |
| %half = OpTypeFloat 16 |
| %v3half = OpTypeVector %half 3 |
| %mat2v3half = OpTypeMatrix %v3half 2 |
| %int = OpTypeInt 32 1 |
| %33 = OpConstantNull %int |
| %int_1 = OpConstant %int 1 |
| %_ptr_Function_mat2v3half = OpTypePointer Function %mat2v3half |
| %41 = OpConstantNull %mat2v3half |
| %unused_entry_point = OpFunction %void None %5 |
| %8 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %m = OpFunction %mat2v3float None %9 |
| %13 = OpLabel |
| %14 = OpLoad %float %t |
| %16 = OpFAdd %float %14 %float_1 |
| OpStore %t %16 |
| OpReturnValue %24 |
| OpFunctionEnd |
| %f = OpFunction %void None %5 |
| %26 = OpLabel |
| %v = OpVariable %_ptr_Function_mat2v3half Function %41 |
| %27 = OpFunctionCall %mat2v3float %m |
| %34 = OpCompositeExtract %v3float %27 0 |
| %31 = OpFConvert %v3half %34 |
| %37 = OpCompositeExtract %v3float %27 1 |
| %35 = OpFConvert %v3half %37 |
| %38 = OpCompositeConstruct %mat2v3half %31 %35 |
| OpStore %v %38 |
| OpReturn |
| OpFunctionEnd |