Closed GiantNuker closed 5 years ago
same thing with
cmake -S . -B ./build/Win64 -G "Visual Studio 16 2019" -A "Win64"
Double check that you have Universal Windows Platform development tools installed
yep. but notice the same thing happened with the one to build a normal Win64 solution
Your command for Win64 seems to be invalid. Should be -A x64
https://cmake.org/cmake/help/v3.16/generator/Visual%20Studio%2016%202019.html#platform-selection
Ok after fixing that, cant run hello triangle
Can you post debug output and the call stack?
Call Stack: Debug Log:
'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Users\mccra\Documents\Programming\CPP\DilligentEngine\DiligentEngineExploration\build\UWP64\DiligentSamples\Tutorials\Tutorial01_HelloTriangle\Debug\AppX\Tutorial01_HelloTriangle.exe'. Symbols loaded. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\D3DCompiler_47.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\D3D12.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x64__8wekyb3d8bbwe\vccorlib140d_app.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x648wekyb3d8bbwe\msvcp140d_app.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x648wekyb3d8bbwe\vcruntime140d_app.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x64__8wekyb3d8bbwe\vcruntime140_1d_app.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Users\mccra\Documents\Programming\CPP\DilligentEngine\DiligentEngineExploration\build\UWP64\DiligentSamples\Tutorials\Tutorial01_HelloTriangle\Debug\AppX\ucrtbased.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\DXCore.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. The thread 0x2a10 has exited with code 0 (0x0). 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\rmclient.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\InputHost.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Unloaded 'C:\Windows\System32\CoreMessaging.dll' 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\propsys.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreUAPCommonProxyStub.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\MrmCoreR.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Shell.ServiceHostBuilder.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\execmodelproxy.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\UiaManager.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.Core.TextInput.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Graphics.dll'. onecoreuap\windows\wgi\winrt\display\displaycommon.cpp(411)\Windows.Graphics.dll!00007FFC2C6B04B0: (caller: 00007FFC2C6B01F5) ReturnHr(1) tid(3080) 80070490 Element not found. onecoreuap\windows\wgi\winrt\display\displaycommon.cpp(411)\Windows.Graphics.dll!00007FFC2C6AE65E: (caller: 00007FFC2C6AD7EC) ReturnHr(2) tid(3080) 80070490 Element not found. onecoreuap\windows\wgi\winrt\display\displaycommon.cpp(411)\Windows.Graphics.dll!00007FFC2C6AE65E: (caller: 00007FFC2C6ADBF2) ReturnHr(3) tid(3080) 80070490 Element not found. Diligent Engine: CRITICAL ERROR in Diligent::SampleApp::InitializeDiligentEngine() (SampleApp.cpp, 180): Failed to find compatible hardware adapters 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'. 'Tutorial01_HelloTriangle.exe' (Win32): Unloaded 'C:\Windows\System32\ResourcePolicyClient.dll' Exception thrown at 0x00007FFC32A6A839 in Tutorial01_HelloTriangle.exe: Microsoft C++ exception: _com_error at memory location 0x000000C8E8FFE860. Exception thrown at 0x00007FFC32A6A839 in Tutorial01_HelloTriangle.exe: Microsoft C++ exception: std::runtime_error at memory location 0x000000C8E8FFF570. Unhandled exception at 0x00007FFBE26AB7EC (ucrtbased.dll) in Tutorial01_HelloTriangle.exe: An invalid parameter was passed to a function that considers invalid parameters fatal.
On Windows samples by default start in D3D12 mode. Looks like your GPU does not support D3D12, and the samples crash (this is not very user-friendly, should likely display an error message).
Diligent Engine: CRITICAL ERROR in Diligent::SampleApp::InitializeDiligentEngine() (SampleApp.cpp, 180): Failed to find compatible hardware adapters
You can try other backends using -mode d3d11
and similar command line options.
https://github.com/DiligentGraphics/DiligentSamples#build-and-run-instructions
Ok thank you; You figured out in a different issue that it dosent support vulcan either but UWP would never use that, right?
Where do i input the arguments? (Its not CMake)
In the command line of the application:
UWP only supports Direct3D11 and Direct3D12. Vulkan and OpenGL are not available (and not needed). Direct3D12 and Vulkan are next-generation APIs that come together most of the time. They are either both supported by a GPU or both are not supported.
For UWP:
Thanks! Now that all the obvious problems are out of the way, I look forward to using your engine :) It seems like you've( and contributors) done a great job.
Trying to build to UWP, used the command in the readme: