locked
SetPrivateData Name Rule?

    Question

  • What's the rule of SetPrivateData 's name rule?  It said  "eft.sam.1" equals "eft.sam.10"

    --------------------

    output

    eft.sam.1
    eft.sam.2
    eft.sam.3
    eft.sam.4
    eft.sam.5
    eft.sam.6
    eft.sam.7
    eft.sam.8
    eft.sam.9
    eft.sam.10
    D3D11 WARNING: ID3D11SamplerState::SetPrivateData: Existing private data of same name with different size found!


    C++ DX11

    Wednesday, April 25, 2012 1:36 PM

Answers

  • Note a bug on this issue has been filed. You could work-around it with the debug interface to specifically suppress that message as well.

    • Marked as answer by Raptor K Tuesday, June 12, 2012 12:42 PM
    Monday, June 11, 2012 9:39 PM

All replies

  • To confirm, you are using WKPDID_D3DDebugObjectName for debug names, correct?

    Wednesday, April 25, 2012 8:48 PM
  • Yes.

    My func:

    inline void DX_SetDebugName( ID3D11DeviceChild* pObj, const CHAR* pstrName )
    {
     OutputDebugStringA(pstrName);
     OutputDebugStringA("\n");
     if ( pObj )
      pObj->SetPrivateData( WKPDID_D3DDebugObjectName, strnlen(pstrName,255), pstrName );
    }


    C++ DX11

    Thursday, April 26, 2012 2:39 AM
  • NOTICE: VS2012 RC STILL NOT FIXED

    C++ DX11

    Saturday, June 09, 2012 2:09 AM
  • FWIW, this message is coming from the SDK Debug Layer which is installed by the Windows 8.0 SDK. It's not part of the Windows OS or strictly speaking part of VS 2012.

    Sunday, June 10, 2012 9:01 PM
  • Note a bug on this issue has been filed. You could work-around it with the debug interface to specifically suppress that message as well.

    • Marked as answer by Raptor K Tuesday, June 12, 2012 12:42 PM
    Monday, June 11, 2012 9:39 PM