Skip to content

Commit 1482335

Browse files
authored
Add debug object name to CB used by SpriteBatch (#535)
1 parent 1c27cec commit 1482335

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Src/SpriteBatch.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ SpriteBatch::Impl::ContextResources::ContextResources(_In_ ID3D11DeviceContext*
329329
deviceContext = context;
330330
#endif
331331

332+
SetDebugObjectName(constantBuffer.GetBuffer(), "DirectXTK::SpriteBatch");
333+
332334
CreateVertexBuffer();
333335
}
334336

0 commit comments

Comments
 (0)