Added vertex pack/unpack support.

This commit is contained in:
bkaradzic
2012-12-31 18:48:52 -08:00
parent d4cd0ea4fa
commit 446686b48f
11 changed files with 351 additions and 192 deletions

View File

@@ -1269,7 +1269,8 @@ namespace bgfx
uint8_t num;
AttribType::Enum type;
bool normalized;
_vertexDecl.decode(attr, num, type, normalized);
bool asInt;
_vertexDecl.decode(attr, num, type, normalized, asInt);
if (-1 != loc
&& 0xff != _vertexDecl.m_attributes[attr])