Added texture debug info.

This commit is contained in:
Branimir Karadžić
2014-04-19 15:02:43 -07:00
parent c8442ebb40
commit dbbaa6ec90
3 changed files with 30 additions and 0 deletions

View File

@@ -1675,6 +1675,16 @@ namespace bgfx
createTexture(textureWidth, textureHeight, numMips);
}
BX_TRACE("Texture %3d: %s (requested: %s), %dx%d%s%s."
, this - s_renderCtx->m_textures
, getName( (TextureFormat::Enum)m_textureFormat)
, getName( (TextureFormat::Enum)m_requestedFormat)
, textureWidth
, textureHeight
, imageContainer.m_cubeMap ? "x6" : ""
, 0 != (m_flags&BGFX_TEXTURE_RT_MASK) ? " (render target)" : ""
);
if (0 != (_flags&BGFX_TEXTURE_RT_BUFFER_ONLY) )
{
return;