What does SetPrivateData(...) mean in DirectX 11?

  • Thread starter Thread starter Manda Rajo
  • Start date Start date
M

Manda Rajo

Guest
My code works correctly without SetPrivateData(...). It seems that it's very important because Microsoft always uses it every where with DEBUG. My problem is I can put it in my code but I don't know how to use it. Can you explain please? Thanks.

Here is a quote from the BasicCompute11.cpp:

#if defined(DEBUG) || defined(PROFILE)
if ( g_pBuf0 )
g_pBuf0->SetPrivateData( WKPDID_D3DDebugObjectName, sizeof( "Buffer0" ) - 1, "Buffer0" );
if ( g_pBuf1 )
g_pBuf1->SetPrivateData( WKPDID_D3DDebugObjectName, sizeof( "Buffer1" ) - 1, "Buffer1" );
if ( g_pBufResult )
g_pBufResult->SetPrivateData( WKPDID_D3DDebugObjectName, sizeof( "Result" ) - 1, "Result" );
#endif

Continue reading...
 
Back
Top