Answered SetPrivateData Name Rule?

  • 2012年4月25日 13:36
     
     

    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

全部回复

  • 2012年4月25日 20:48
     
     

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

  • 2012年4月26日 2:39
     
     

    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

  • 2012年6月9日 2:09
     
     
    NOTICE: VS2012 RC STILL NOT FIXED

    C++ DX11

  • 2012年6月10日 21:01
     
     

    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.

  • 2012年6月11日 21:39
     
     已答复

    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.

    • 已标记为答案 Raptor K 2012年6月12日 12:42
    •