2018-12-14 13:41:00 -05:00
|
|
|
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
2018-09-25 10:11:35 -04:00
|
|
|
|
|
|
|
|
#include "Common/TargetPlatformBase.h"
|
|
|
|
|
#include "HAL/IConsoleManager.h"
|
2019-01-28 17:35:18 -05:00
|
|
|
#include "DeviceBrowserDefaultPlatformWidgetCreator.h"
|
2018-09-25 10:11:35 -04:00
|
|
|
|
|
|
|
|
bool FTargetPlatformBase::UsesForwardShading() const
|
|
|
|
|
{
|
|
|
|
|
static IConsoleVariable* CVarForwardShading = IConsoleManager::Get().FindConsoleVariable(TEXT("r.ForwardShading"));
|
|
|
|
|
return CVarForwardShading ? (CVarForwardShading->GetInt() != 0) : false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool FTargetPlatformBase::UsesDBuffer() const
|
|
|
|
|
{
|
|
|
|
|
static IConsoleVariable* CVar = IConsoleManager::Get().FindConsoleVariable(TEXT("r.DBuffer"));
|
|
|
|
|
return CVar ? (CVar->GetInt() != 0) : false;
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-28 17:35:18 -05:00
|
|
|
TSharedPtr<IDeviceManagerCustomPlatformWidgetCreator> FTargetPlatformBase::GetCustomWidgetCreator() const
|
|
|
|
|
{
|
|
|
|
|
static TSharedPtr<FDeviceBrowserDefaultPlatformWidgetCreator> DefaultWidgetCreator = MakeShared<FDeviceBrowserDefaultPlatformWidgetCreator>();
|
|
|
|
|
return DefaultWidgetCreator;
|
|
|
|
|
}
|