Refactor settings types to use scripting API
This commit is contained in:
@@ -91,7 +91,7 @@ GPUDevice* GPUDeviceDX11::Create()
|
||||
else if (CommandLine::Options.D3D11)
|
||||
maxAllowedFeatureLevel = D3D_FEATURE_LEVEL_11_0;
|
||||
#if !USE_EDITOR && PLATFORM_WINDOWS
|
||||
auto winSettings = WindowsPlatformSettings::Instance();
|
||||
auto winSettings = WindowsPlatformSettings::Get();
|
||||
if (!winSettings->SupportDX11 && !winSettings->SupportDX10)
|
||||
{
|
||||
// Skip if there is no support
|
||||
|
||||
@@ -45,7 +45,7 @@ GPUDevice* GPUDeviceDX12::Create()
|
||||
selectedAdapter.Description.VendorId = GPU_VENDOR_ID_AMD;
|
||||
#else
|
||||
#if !USE_EDITOR && PLATFORM_WINDOWS
|
||||
auto winSettings = WindowsPlatformSettings::Instance();
|
||||
auto winSettings = WindowsPlatformSettings::Get();
|
||||
if (!winSettings->SupportDX12)
|
||||
{
|
||||
// Skip if there is no support
|
||||
|
||||
@@ -1076,7 +1076,7 @@ GPUDeviceVulkan::GPUDeviceVulkan(ShaderProfile shaderProfile, GPUAdapterVulkan*
|
||||
GPUDevice* GPUDeviceVulkan::Create()
|
||||
{
|
||||
#if !USE_EDITOR && (PLATFORM_WINDOWS || PLATFORM_LINUX)
|
||||
auto settings = PlatformSettings::Instance();
|
||||
auto settings = PlatformSettings::Get();
|
||||
if (!settings->SupportVulkan)
|
||||
{
|
||||
// Skip if there is no support
|
||||
|
||||
Reference in New Issue
Block a user