|
|
@@ -488,6 +488,40 @@ namespace bgfx
|
|
|
return handle;
|
|
|
}
|
|
|
|
|
|
+ void dump(const VertexDecl& _decl)
|
|
|
+ {
|
|
|
+ if (BX_ENABLED(BGFX_CONFIG_DEBUG) )
|
|
|
+ {
|
|
|
+ BX_TRACE("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_TRACE("\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]
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
#include "charset.h"
|
|
|
|
|
|
void charsetFillTexture(const uint8_t* _charset, uint8_t* _rgba, uint32_t _height, uint32_t _pitch, uint32_t _bpp)
|