diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-03-16 05:55:06 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-03-16 05:55:06 +0000 |
| commit | 38152798439e456d843f0608d4c751650f462460 (patch) | |
| tree | 3568f100ea8ce9f492b7e8a90e50dc4108f86def /unityplugin/UnityEmulator | |
| parent | Updated core submodule (fixed scissor rect in D3D12) (diff) | |
| download | DiligentEngine-38152798439e456d843f0608d4c751650f462460.tar.gz DiligentEngine-38152798439e456d843f0608d4c751650f462460.zip | |
Added initialization in vulkan mode
Diffstat (limited to 'unityplugin/UnityEmulator')
| -rw-r--r-- | unityplugin/UnityEmulator/src/UnityAppBase.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/unityplugin/UnityEmulator/src/UnityAppBase.cpp b/unityplugin/UnityEmulator/src/UnityAppBase.cpp index 5a037fb..55274c9 100644 --- a/unityplugin/UnityEmulator/src/UnityAppBase.cpp +++ b/unityplugin/UnityEmulator/src/UnityAppBase.cpp @@ -82,9 +82,13 @@ void UnityAppBase::ProcessCommandLine(const char *CmdLine) { m_DeviceType = DeviceType::OpenGL; } + else if (_stricmp(pos, "VK") == 0) + { + m_DeviceType = DeviceType::Vulkan; + } else { - LOG_ERROR_AND_THROW("Unknown device type. Only the following types are supported: D3D11, D3D12, GL"); + LOG_ERROR_AND_THROW("Unknown device type. Only the following types are supported: D3D11, D3D12, GL, VK"); } } else |
