using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace StgSharp.Math { [StructLayout(LayoutKind.Explicit, Size = 16)] public struct GLhalfNV { [FieldOffset(0)] public short binary; public GLhalfNV(short bin) { binary = bin; } public static explicit operator short(GLhalfNV x) { return x.binary; } public static explicit operator GLhalfNV(short x) { return new GLhalfNV(x); } } }