MCPcopy Create free account
hub / github.com/MKXJun/DirectX11-With-Windows-SDK / SetDebugObjectName

Function SetDebugObjectName

Common/WICTextureLoader.cpp:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 //--------------------------------------------------------------------------------------
49 template<UINT TNameLength>
50 inline void SetDebugObjectName(_In_ ID3D11DeviceChild* resource, _In_ const char(&name)[TNameLength])
51 {
52#if !defined(NO_D3D11_DEBUG_NAME) && ( defined(_DEBUG) || defined(PROFILE) )
53 resource->SetPrivateData(WKPDID_D3DDebugObjectName, TNameLength - 1, name);
54#else
55 UNREFERENCED_PARAMETER(resource);
56 UNREFERENCED_PARAMETER(name);
57#endif
58 }
59
60 //-------------------------------------------------------------------------------------
61 // WIC Pixel Format Translation Data

Callers 2

CreateTextureFromWICFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected