Files
UnrealEngineUWP/Engine/Source/Runtime/AVEncoder/Private/VideoCommon.cpp
aurel cordonnier 50944fd712 Merge UE5/RES @ 16162155 to UE5/Main
This represents UE4/Main @ 16130047 and Dev-PerfTest @ 16126156

[CL 16163576 by aurel cordonnier in ue5-main branch]
2021-04-29 19:32:06 -04:00

32 lines
675 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "VideoCommon.h"
#include "CodecPacket.h"
#if PLATFORM_WINDOWS
#include "Windows/AllowWindowsPlatformTypes.h"
#include "Windows/PreWindowsApi.h"
#include <d3d11.h>
#include "Windows/PostWindowsApi.h"
#include "Windows/HideWindowsPlatformTypes.h"
#endif
namespace AVEncoder
{
#if PLATFORM_WINDOWS
void DebugSetD3D11ObjectName(ID3D11DeviceChild* InD3DObject, const char* InName)
{
static GUID _D3DDebugObjectName = { 0x429b8c22, 0x9188, 0x4b0c, {0x87, 0x42, 0xac, 0xb0, 0xbf, 0x85, 0xc2, 0x00} };
if (InD3DObject)
{
InD3DObject->SetPrivateData(_D3DDebugObjectName, strlen(InName), InName);
}
}
#endif
}