bgfx.natvis 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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_hashIn">m_hashIn</Item>
  56. <Item Name="m_hashOut">m_hashOut</Item>
  57. <Item Name="m_num">m_num</Item>
  58. <Item Name="m_refCount">m_refCount</Item>
  59. </Expand>
  60. </Type>
  61. <Type Name="bgfx::ProgramHandle">
  62. <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
  63. <DisplayString>{{ idx={idx}, vsh={bgfx::s_ctx->m_programRef[idx].m_vsh}, fsh={bgfx::s_ctx->m_programRef[idx].m_fsh} }}</DisplayString>
  64. <Expand>
  65. <Item Name="idx">idx</Item>
  66. <ExpandedItem>bgfx::s_ctx->m_programRef[idx]</ExpandedItem>
  67. </Expand>
  68. </Type>
  69. <Type Name="bgfx::TextureHandle">
  70. <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
  71. <DisplayString>{{ idx={idx}, name={bgfx::s_ctx->m_textureRef[idx].m_name} }}</DisplayString>
  72. <Expand>
  73. <Item Name="idx">idx</Item>
  74. <ExpandedItem>bgfx::s_ctx->m_textureRef[idx]</ExpandedItem>
  75. </Expand>
  76. </Type>
  77. <Type Name="bgfx::TextureRef">
  78. <Expand>
  79. <Item Name="m_name">m_name</Item>
  80. <Item Name="m_ptr">m_ptr</Item>
  81. <Item Name="m_flags">m_flags</Item>
  82. <Item Name="m_storageSize">m_storageSize</Item>
  83. <Item Name="m_refCount">m_refCount</Item>
  84. <Item Name="m_bbRatio">m_bbRatio</Item>
  85. <Item Name="m_format">(bgfx::TextureFormat::Enum)m_format</Item>
  86. <Item Name="m_numMips">m_numMips</Item>
  87. <Item Name="m_numLayers">m_numLayers</Item>
  88. <Item Name="m_owned">m_owned</Item>
  89. <Item Name="m_immutable">m_immutable</Item>
  90. </Expand>
  91. </Type>
  92. <Type Name="bgfx::FrameBufferHandle">
  93. <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
  94. <DisplayString>{{ idx={idx} }}</DisplayString>
  95. <Expand>
  96. <Item Name="idx">idx</Item>
  97. <ExpandedItem>bgfx::s_ctx->m_frameBufferRef[idx]</ExpandedItem>
  98. </Expand>
  99. </Type>
  100. <Type Name="bgfx::VertexLayoutHandle">
  101. <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
  102. <DisplayString>{{ idx={idx} }}</DisplayString>
  103. <Expand>
  104. <ExpandedItem>this,!</ExpandedItem>
  105. <ExpandedItem>bgfx::s_ctx->m_vertexLayoutRef[idx]</ExpandedItem>
  106. </Expand>
  107. </Type>
  108. <Type Name="bgfx::Encoder">
  109. <Expand>
  110. <ExpandedItem>(bgfx::EncoderImpl *)this</ExpandedItem>
  111. </Expand>
  112. </Type>
  113. <Type Name="DebugDrawEncoder">
  114. <Expand>
  115. <ExpandedItem>(DebugDrawEncoderImpl *)this</ExpandedItem>
  116. </Expand>
  117. </Type>
  118. </AutoVisualizer>