
Practical Matters 233
When an object with a name causes the DirectX debug layer to emit infor-
mation about the object, you will see the object’s name appear with that
information. I have wrapped the naming in GTEngine to allow you to condi-
tionally turn the names of objects on or off.
5.2.2 Debugging on the GPU
Microsoft Visual Studio 2013 allows you to debug HLSL shaders. You can
actually have HLSL shaders in your project files. If you drag an HLSL file
into the project, its file properties show that it will be built by the “HLSL
Compiler.” If you choose to use this mechanism, you must set compiler options
via the properties dialog. Currently, you must ...