bgfx.natvis 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
  3. <Type Name="bgfx::IndexBufferHandle">
  4. <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
  5. <DisplayString>{{ idx={idx} }}</DisplayString>
  6. <Expand>
  7. <Item Name="idx">idx</Item>
  8. <ExpandedItem>bgfx::s_ctx->m_indexBuffers[idx]</ExpandedItem>
  9. </Expand>
  10. </Type>
  11. <Type Name="bgfx::VertexBufferHandle">
  12. <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
  13. <DisplayString>{{ idx={idx} }}</DisplayString>
  14. <Expand>
  15. <Item Name="idx">idx</Item>
  16. <ExpandedItem>bgfx::s_ctx->m_vertexBuffers[idx]</ExpandedItem>
  17. </Expand>
  18. </Type>
  19. <Type Name="bgfx::DynamicIndexBufferHandle">
  20. <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
  21. <DisplayString>{{ idx={idx} }}</DisplayString>
  22. <Expand>
  23. <Item Name="idx">idx</Item>
  24. <ExpandedItem>bgfx::s_ctx->m_dynamicIndexBuffers[idx]</ExpandedItem>
  25. </Expand>
  26. </Type>
  27. <Type Name="bgfx::DynamicVertexBufferHandle">
  28. <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
  29. <DisplayString>{{ idx={idx} }}</DisplayString>
  30. <Expand>
  31. <Item Name="idx">idx</Item>
  32. <ExpandedItem>bgfx::s_ctx->m_dynamicVertexBuffers[idx]</ExpandedItem>
  33. </Expand>
  34. </Type>
  35. <Type Name="bgfx::UniformHandle">
  36. <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
  37. <DisplayString>{{ idx={idx}, name={bgfx::s_ctx->m_uniformRef[idx].m_name} }}</DisplayString>
  38. <Expand>
  39. <Item Name="idx">idx</Item>
  40. <ExpandedItem>bgfx::s_ctx->m_uniformRef[idx]</ExpandedItem>
  41. </Expand>
  42. </Type>
  43. <Type Name="bgfx::ShaderHandle">
  44. <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
  45. <DisplayString>{{ idx={idx}, name={bgfx::s_ctx->m_shaderRef[idx].m_name} }}</DisplayString>
  46. <Expand>
  47. <Item Name="idx">idx</Item>
  48. <ExpandedItem>bgfx::s_ctx->m_shaderRef[idx]</ExpandedItem>
  49. </Expand>
  50. </Type>
  51. <Type Name="bgfx::ShaderRef">
  52. <Expand>
  53. <Item Name="m_uniforms">m_uniforms,[m_num]</Item>
  54. <Item Name="m_name">m_name</Item>
  55. <Item Name="m_hash">m_hash</Item>
  56. <Item Name="m_refCount">m_refCount</Item>
  57. <Item Name="m_num">m_num</Item>
  58. </Expand>
  59. </Type>
  60. <Type Name="bgfx::ProgramHandle">
  61. <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
  62. <DisplayString>{{ idx={idx}, vsh={bgfx::s_ctx->m_programRef[idx].m_vsh}, fsh={bgfx::s_ctx->m_programRef[idx].m_fsh} }}</DisplayString>
  63. <Expand>
  64. <Item Name="idx">idx</Item>
  65. <ExpandedItem>bgfx::s_ctx->m_programRef[idx]</ExpandedItem>
  66. </Expand>
  67. </Type>
  68. <Type Name="bgfx::TextureHandle">
  69. <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
  70. <DisplayString>{{ idx={idx}, name={bgfx::s_ctx->m_textureRef[idx].m_name} }}</DisplayString>
  71. <Expand>
  72. <Item Name="idx">idx</Item>
  73. <ExpandedItem>bgfx::s_ctx->m_textureRef[idx]</ExpandedItem>
  74. </Expand>
  75. </Type>
  76. <Type Name="bgfx::TextureRef">
  77. <Expand>
  78. <Item Name="m_name">m_name</Item>
  79. <Item Name="m_ptr">m_ptr</Item>
  80. <Item Name="m_storageSize">m_storageSize</Item>
  81. <Item Name="m_refCount">m_refCount</Item>
  82. <Item Name="m_bbRatio">m_bbRatio</Item>
  83. <Item Name="m_format">(bgfx::TextureFormat::Enum)m_format</Item>
  84. <Item Name="m_numMips">m_numMips</Item>
  85. <Item Name="m_owned">m_owned</Item>
  86. <Item Name="m_immutable">m_immutable</Item>
  87. <Item Name="m_rt">m_rt</Item>
  88. </Expand>
  89. </Type>
  90. <Type Name="bgfx::FrameBufferHandle">
  91. <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
  92. <DisplayString>{{ idx={idx} }}</DisplayString>
  93. <Expand>
  94. <Item Name="idx">idx</Item>
  95. <ExpandedItem>bgfx::s_ctx->m_frameBufferRef[idx]</ExpandedItem>
  96. </Expand>
  97. </Type>
  98. <Type Name="bgfx::VertexDeclHandle">
  99. <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
  100. <DisplayString>{{ idx={idx} }}</DisplayString>
  101. <Expand>
  102. <ExpandedItem>this,!</ExpandedItem>
  103. <ExpandedItem>bgfx::s_ctx->m_declRef[idx]</ExpandedItem>
  104. </Expand>
  105. </Type>
  106. <Type Name="bgfx::Encoder">
  107. <Expand>
  108. <ExpandedItem>(bgfx::EncoderImpl *)this</ExpandedItem>
  109. </Expand>
  110. </Type>
  111. <Type Name="DebugDrawEncoder">
  112. <Expand>
  113. <ExpandedItem>(DebugDrawEncoderImpl *)this</ExpandedItem>
  114. </Expand>
  115. </Type>
  116. </AutoVisualizer>