From 8d18cf1625c3c085d9eb41acbae8a3fdc82814e7 Mon Sep 17 00:00:00 2001 From: MaulingMonkey Date: Thu, 12 Apr 2018 09:07:35 -0700 Subject: [PATCH] Added bgfx.natvis. (#1368) --- scripts/bgfx.lua | 1 + scripts/bgfx.natvis | 117 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 scripts/bgfx.natvis diff --git a/scripts/bgfx.lua b/scripts/bgfx.lua index b943ff349..9edede1b5 100644 --- a/scripts/bgfx.lua +++ b/scripts/bgfx.lua @@ -173,6 +173,7 @@ function bgfxProjectBase(_kind, _defines) path.join(BGFX_DIR, "include/**.h"), path.join(BGFX_DIR, "src/**.cpp"), path.join(BGFX_DIR, "src/**.h"), + path.join(BGFX_DIR, "scripts/**.natvis"), } removefiles { diff --git a/scripts/bgfx.natvis b/scripts/bgfx.natvis new file mode 100644 index 000000000..e946a0bc2 --- /dev/null +++ b/scripts/bgfx.natvis @@ -0,0 +1,117 @@ + + + + {{ idx={idx} (INVALID) }} + {{ idx={idx} }} + + idx + bgfx::s_ctx->m_indexBuffers[idx] + + + + + {{ idx={idx} (INVALID) }} + {{ idx={idx} }} + + idx + bgfx::s_ctx->m_vertexBuffers[idx] + + + + + {{ idx={idx} (INVALID) }} + {{ idx={idx} }} + + idx + bgfx::s_ctx->m_dynamicIndexBuffers[idx] + + + + + {{ idx={idx} (INVALID) }} + {{ idx={idx} }} + + idx + bgfx::s_ctx->m_dynamicVertexBuffers[idx] + + + + + {{ idx={idx} (INVALID) }} + {{ idx={idx}, name={bgfx::s_ctx->m_uniformRef[idx].m_name} }} + + idx + bgfx::s_ctx->m_uniformRef[idx] + + + + + {{ idx={idx} (INVALID) }} + {{ idx={idx}, name={bgfx::s_ctx->m_shaderRef[idx].m_name} }} + + idx + bgfx::s_ctx->m_shaderRef[idx] + + + + + + m_uniforms,[m_num] + m_name + m_hash + m_refCount + m_num + + + + + {{ idx={idx} (INVALID) }} + {{ idx={idx}, vsh={bgfx::s_ctx->m_programRef[idx].m_vsh}, fsh={bgfx::s_ctx->m_programRef[idx].m_fsh} }} + + idx + bgfx::s_ctx->m_programRef[idx] + + + + + {{ idx={idx} (INVALID) }} + {{ idx={idx}, name={bgfx::s_ctx->m_textureRef[idx].m_name} }} + + idx + bgfx::s_ctx->m_textureRef[idx] + + + + + + m_name + m_ptr + m_storageSize + m_refCount + m_bbRatio + (bgfx::TextureFormat::Enum)m_format + m_numMips + m_owned + m_immutable + m_rt + + + + + {{ idx={idx} (INVALID) }} + {{ idx={idx} }} + + idx + bgfx::s_ctx->m_frameBufferRef[idx] + + + + + {{ idx={idx} (INVALID) }} + {{ idx={idx} }} + + this,! + bgfx::s_ctx->m_declRef[idx] + + +