mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-25 10:20:52 +00:00
Added vertex pack/unpack support.
This commit is contained in:
@@ -229,7 +229,8 @@ namespace bgfx
|
||||
uint8_t num;
|
||||
AttribType::Enum type;
|
||||
bool normalized;
|
||||
_decl.decode(Attrib::Enum(attr), num, type, normalized);
|
||||
bool asInt;
|
||||
_decl.decode(Attrib::Enum(attr), num, type, normalized, asInt);
|
||||
elem->Format = s_attribType[type][num-1][normalized];
|
||||
elem->AlignedByteOffset = _decl.m_offset[attr];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user