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

Function SetDebugObjectName

Common/DDSTextureLoader.cpp:127–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126 template<UINT TNameLength>
127 inline void SetDebugObjectName(_In_ ID3D11DeviceChild* resource, _In_ const char (&name)[TNameLength])
128 {
129 #if defined(_DEBUG) || defined(PROFILE)
130 resource->SetPrivateData(WKPDID_D3DDebugObjectName, TNameLength - 1, name);
131 #else
132 UNREFERENCED_PARAMETER(resource);
133 UNREFERENCED_PARAMETER(name);
134 #endif
135 }
136
137 //--------------------------------------------------------------------------------------
138 HRESULT LoadTextureDataFromFile(

Callers 2

CreateD3DResourcesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected