summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/scripts/bgfx.natvis
blob: 2201f415aef65cc8707347be416b99df176a91e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
    <Type Name="bgfx::IndexBufferHandle">
        <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
        <DisplayString>{{ idx={idx} }}</DisplayString>
        <Expand>
            <Item Name="idx">idx</Item>
            <ExpandedItem>bgfx::s_ctx->m_indexBuffers[idx]</ExpandedItem>
        </Expand>
    </Type>

    <Type Name="bgfx::VertexBufferHandle">
        <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
        <DisplayString>{{ idx={idx} }}</DisplayString>
        <Expand>
            <Item Name="idx">idx</Item>
            <ExpandedItem>bgfx::s_ctx->m_vertexBuffers[idx]</ExpandedItem>
        </Expand>
    </Type>

    <Type Name="bgfx::DynamicIndexBufferHandle">
        <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
        <DisplayString>{{ idx={idx} }}</DisplayString>
        <Expand>
            <Item Name="idx">idx</Item>
            <ExpandedItem>bgfx::s_ctx->m_dynamicIndexBuffers[idx]</ExpandedItem>
        </Expand>
    </Type>

    <Type Name="bgfx::DynamicVertexBufferHandle">
        <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
        <DisplayString>{{ idx={idx} }}</DisplayString>
        <Expand>
            <Item Name="idx">idx</Item>
            <ExpandedItem>bgfx::s_ctx->m_dynamicVertexBuffers[idx]</ExpandedItem>
        </Expand>
    </Type>

    <Type Name="bgfx::UniformHandle">
        <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
        <DisplayString>{{ idx={idx}, name={bgfx::s_ctx->m_uniformRef[idx].m_name} }}</DisplayString>
        <Expand>
            <Item Name="idx">idx</Item>
            <ExpandedItem>bgfx::s_ctx->m_uniformRef[idx]</ExpandedItem>
        </Expand>
    </Type>

    <Type Name="bgfx::ShaderHandle">
        <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
        <DisplayString>{{ idx={idx}, name={bgfx::s_ctx->m_shaderRef[idx].m_name} }}</DisplayString>
        <Expand>
            <Item Name="idx">idx</Item>
            <ExpandedItem>bgfx::s_ctx->m_shaderRef[idx]</ExpandedItem>
        </Expand>
    </Type>

    <Type Name="bgfx::ShaderRef">
        <Expand>
            <Item Name="m_uniforms">m_uniforms,[m_num]</Item>
            <Item Name="m_name">m_name</Item>
            <Item Name="m_hash">m_hash</Item>
            <Item Name="m_refCount">m_refCount</Item>
            <Item Name="m_num">m_num</Item>
        </Expand>
    </Type>

    <Type Name="bgfx::ProgramHandle">
        <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
        <DisplayString>{{ idx={idx}, vsh={bgfx::s_ctx->m_programRef[idx].m_vsh}, fsh={bgfx::s_ctx->m_programRef[idx].m_fsh} }}</DisplayString>
        <Expand>
            <Item Name="idx">idx</Item>
            <ExpandedItem>bgfx::s_ctx->m_programRef[idx]</ExpandedItem>
        </Expand>
    </Type>

    <Type Name="bgfx::TextureHandle">
        <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
        <DisplayString>{{ idx={idx}, name={bgfx::s_ctx->m_textureRef[idx].m_name} }}</DisplayString>
        <Expand>
            <Item Name="idx">idx</Item>
            <ExpandedItem>bgfx::s_ctx->m_textureRef[idx]</ExpandedItem>
        </Expand>
    </Type>

    <Type Name="bgfx::TextureRef">
        <Expand>
            <Item Name="m_name">m_name</Item>
            <Item Name="m_ptr">m_ptr</Item>
            <Item Name="m_storageSize">m_storageSize</Item>
            <Item Name="m_refCount">m_refCount</Item>
            <Item Name="m_bbRatio">m_bbRatio</Item>
            <Item Name="m_format">(bgfx::TextureFormat::Enum)m_format</Item>
            <Item Name="m_numMips">m_numMips</Item>
            <Item Name="m_owned">m_owned</Item>
            <Item Name="m_immutable">m_immutable</Item>
            <Item Name="m_rt">m_rt</Item>
        </Expand>
    </Type>

    <Type Name="bgfx::FrameBufferHandle">
        <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
        <DisplayString>{{ idx={idx} }}</DisplayString>
        <Expand>
            <Item Name="idx">idx</Item>
            <ExpandedItem>bgfx::s_ctx->m_frameBufferRef[idx]</ExpandedItem>
        </Expand>
    </Type>

    <Type Name="bgfx::VertexLayoutHandle">
        <DisplayString Condition="idx == bgfx::kInvalidHandle">{{ idx={idx} (INVALID) }}</DisplayString>
        <DisplayString>{{ idx={idx} }}</DisplayString>
        <Expand>
            <ExpandedItem>this,!</ExpandedItem>
            <ExpandedItem>bgfx::s_ctx->m_vertexLayoutRef[idx]</ExpandedItem>
        </Expand>
    </Type>

    <Type Name="bgfx::Encoder">
        <Expand>
            <ExpandedItem>(bgfx::EncoderImpl *)this</ExpandedItem>
        </Expand>
    </Type>

    <Type Name="DebugDrawEncoder">
        <Expand>
            <ExpandedItem>(DebugDrawEncoderImpl *)this</ExpandedItem>
        </Expand>
    </Type>
</AutoVisualizer>