toGLType

toGLType
nothrow pure @nogc @safe @property
(
T
)
(
)

Examples

1 assert( toGLType!ubyte  == GLType.UBYTE );
2 assert( toGLType!byte   == GLType.BYTE );
3 assert( toGLType!ushort == GLType.USHORT );
4 assert( toGLType!short  == GLType.SHORT );
5 assert( toGLType!uint   == GLType.UINT );
6 assert( toGLType!int    == GLType.INT );
7 assert( toGLType!float  == GLType.FLOAT );
8 assert( toGLType!double == GLType.DOUBLE );

Meta