Files
UnrealEngineUWP/Engine/Source/Runtime/AVEncoder/Private/MicrosoftCommon.cpp
Nick Pace db7ffa0445 Integrate Dev-TensorWorks PixelStreaming/AVEncoder changes into Main
#JIRA UCS-1831
#fyi luke.bermingham, marco.anastasi
#rb aidan.possemiers

[CL 17920208 by Nick Pace in ue5-main branch]
2021-10-26 01:05:06 -04:00

46 lines
960 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "MicrosoftCommon.h"
#if PLATFORM_WINDOWS || (PLATFORM_XBOXONE && WITH_LEGACY_XDK)
#if WMFMEDIA_SUPPORTED_PLATFORM
#pragma comment(lib, "mfplat")
#pragma comment(lib, "mfuuid")
#pragma comment(lib, "Mfreadwrite")
#endif
namespace AVEncoder
{
//
// Windows only code
//
//#if PLATFORM_WINDOWS
//ID3D11Device* GetUE4DxDevice()
//{
// auto Device = static_cast<ID3D11Device*>(GDynamicRHI->RHIGetNativeDevice());
// checkf(Device != nullptr, TEXT("Failed to get UE4's ID3D11Device"));
// return Device;
//}
//#endif
//
////
//// XboxOne only code
////
//#if PLATFORM_XBOXONE
//ID3D12Device* GetUE4DxDevice()
//{
// auto Device = static_cast<ID3D12Device*>(GDynamicRHI->RHIGetNativeDevice());
// checkf(Device != nullptr, TEXT("Failed to get UE4's ID3D12Device"));
// return Device;
//}
//
//#endif
} // namespace AVEncoder
#endif // PLATFORM_WINDOWS || (PLATFORM_XBOXONE && WITH_LEGACY_XDK)