Skip to content

Commit 4c08302

Browse files
authored
Added examples of resource names being displayed in RenderDoc and Nsight in 1-2-3-namingthings (#140)
1 parent 4fbef77 commit 4c08302

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

docs/1-introduction/1-2-debug/1-2-3-naming-things.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ Notice anything?
4848

4949
Exactly, they show names.
5050

51+
Naming things is also useful while debugging your application. In debuggers such as RenderDoc or Nvidia Nsight, the resource name will show up in the Resource Inspector, making it easier to find your resources and check its contents / configuration.
52+
53+
For example, if we name our Triangle vertex buffer using the follows
54+
```cpp
55+
SetDebugName(_triangleVertices.Get(), "Triangle_Vertices");
56+
```
57+
In RenderDoc's Resource Inspector tab, we see
58+
![](../../images/1-2-3-namingthings-renderdoc.png)
59+
60+
Similary, in Nsight's All Resources tab, we see
61+
![](../../images/1-2-3-namingthings-nsight.png)
62+
5163
[Project on GitHub](https://github.com/GraphicsProgramming/learnd3d11/tree/main/src/Cpp/1-getting-started/1-2-3-NamingThings)
5264
5365
[Next chapter](./1-2-4-renderdoc.md)
19.8 KB
Loading
24.7 KB
Loading

0 commit comments

Comments
 (0)