X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fvertexformat.h;h=fba206e4386e978674a2d5e6bbc7cc33c9d2119e;hp=64c89e13166abae491fa2a50d30785cddd7a86cc;hb=8a8cce8ef4ee28b3572a72958b8b407759f9f826;hpb=c8e122dc5c859c72ff98840477adbd263fe914c3 diff --git a/source/core/vertexformat.h b/source/core/vertexformat.h index 64c89e13..fba206e4 100644 --- a/source/core/vertexformat.h +++ b/source/core/vertexformat.h @@ -61,6 +61,10 @@ enum VertexAttribute: std::uint16_t 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, @@ -134,6 +138,9 @@ inline unsigned get_attribute_size(VertexAttribute a) 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