GENERIC_I2 = 0x28CA,
GENERIC_I3 = 0x28CB,
GENERIC_I4 = 0x28CC,
+ PADDING1 = 0xF811,
+ PADDING2 = 0xF812,
+ PADDING3 = 0xF813,
+ PADDING4 = 0xF814,
RAW_ATTRIB1 = 0xFDC1,
RAW_ATTRIB2 = 0xFDC2,
RAW_ATTRIB3 = 0xFDC3,
*/
class VertexFormat
{
-private:
- enum { MAX_ATTRIBUTES = 15 };
+public:
+ static constexpr unsigned MAX_ATTRIBUTES = 15;
+private:
std::uint8_t count = 0;
VertexAttribute attributes[MAX_ATTRIBUTES];
inline bool is_integer_attribute(VertexAttribute a)
{ return a&8; }
+inline bool is_padding(VertexAttribute a)
+{ return get_attribute_semantic(a)==get_attribute_semantic(PADDING1); }
+
void operator>>(const LexicalConverter &, VertexAttribute &);
} // namespace GL