Lines Matching defs:preferred
405 // VertexTypeMapping maps GL type & normalized flag to preferred and fallback D3D vertex types (as D3DVertexType enums).
408 template <D3DVertexType Preferred, D3DVertexType Fallback = Preferred>
411 enum { preferred = Preferred };
452 // Policy rules for use with Converter, to choose whether to use the preferred or fallback conversion.
454 template <class T> struct UsePreferred { enum { type = T::preferred }; };
457 // Converter ties it all together. Given an OpenGL type/norm/size and choice of preferred/fallback conversion,
499 #define TRANSLATION(type, norm, size, preferred) \
502 Converter<type, norm, size, preferred>::identity, \
503 Converter<type, norm, size, preferred>::finalSize, \
504 Converter<type, norm, size, preferred>::convertArray, \
505 static_cast<D3DDECLTYPE>(Converter<type, norm, size, preferred>::declflag) \