MCPcopy Create free account
hub / github.com/Apress/Ray-Tracing-Gems-II / SetDebugObjectName

Function SetDebugObjectName

Chapter_07/DDSTextureLoader12.cpp:160–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158
159 template<UINT TNameLength>
160 inline void SetDebugObjectName(_In_ ID3D12DeviceChild* resource, _In_z_ const wchar_t(&name)[TNameLength]) noexcept
161 {
162 #if !defined(NO_D3D12_DEBUG_NAME) && ( defined(_DEBUG) || defined(PROFILE) )
163 resource->SetName(name);
164 #else
165 UNREFERENCED_PARAMETER(resource);
166 UNREFERENCED_PARAMETER(name);
167 #endif
168 }
169
170 inline uint32_t CountMips(uint32_t width, uint32_t height) noexcept
171 {

Callers 2

CreateTextureResourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected