UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AVEncoderDebug.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#define DEBUG_SET_D3D11_OBJECT_NAME(D3D11Object, Name) \
6{\
7 static GUID _D3DDebugObjectNameW = {0x4cca5fd8,0x921f,0x42c8,{0x85,0x66,0x70,0xca,0xf2,0xa9,0xb7,0x41}}; \
8 FString SetName = FString::Printf(TEXT("%s (%s:%d)"), *FString(Name), *FPaths::GetCleanFilename(FString(__FILE__)), __LINE__); \
9 D3D11Object->SetPrivateData(_D3DDebugObjectNameW, SetName.Len() * sizeof(TCHAR), *SetName); \
10}
11
12#define DEBUG_D3D11_REPORT_LIVE_DEVICE_OBJECT(D3D11Device) \
13if((D3D11Device)) \
14{ \
15 TRefCountPtr<ID3D11Debug> DebugInterface; \
16 if(D3D11Device->QueryInterface(__uuidof(ID3D11Debug), (void**)DebugInterface.GetInitReference()) == S_OK) \
17 { \
18 DebugInterface->ReportLiveDeviceObjects(D3D11_RLDO_DETAIL | D3D11_RLDO_IGNORE_INTERNAL); \
19 } \
20}