Removed use of debugPrintf.

This commit is contained in:
Branimir Karadžić
2018-11-26 17:32:15 -08:00
parent b50c64289a
commit 9abc80cb62
4 changed files with 35 additions and 37 deletions

View File

@@ -153,40 +153,6 @@ namespace bgfx
return s_attrName[_attr*2+1];
}
void dump(const VertexDecl& _decl)
{
if (BX_ENABLED(BGFX_CONFIG_DEBUG) )
{
bx::debugPrintf("vertexdecl %08x (%08x), stride %d\n"
, _decl.m_hash
, bx::hash<bx::HashMurmur2A>(_decl.m_attributes)
, _decl.m_stride
);
for (uint32_t attr = 0; attr < Attrib::Count; ++attr)
{
if (UINT16_MAX != _decl.m_attributes[attr])
{
uint8_t num;
AttribType::Enum type;
bool normalized;
bool asInt;
_decl.decode(Attrib::Enum(attr), num, type, normalized, asInt);
bx::debugPrintf("\tattr %d - %s, num %d, type %d, norm %d, asint %d, offset %d\n"
, attr
, getAttribName(Attrib::Enum(attr) )
, num
, type
, normalized
, asInt
, _decl.m_offset[attr]
);
}
}
}
}
struct AttribToId
{
Attrib::Enum attr;