altered 57 line in Porgram.cs -> I've made it look like this:
_graphicsDevice = VeldridStartup.CreateGraphicsDevice(window, new GraphicsDeviceOptions { Debug = true, PreferStandardClipSpaceYDirection = true }, GraphicsBackend.Vulkan);
Win10 & NVidia RTX 2070 Super if it makes any difference
Runs fine, but window resizing or maximization leads to following exception:
Unhandled Exception: Veldrid.VeldridException: A Vulkan validation error was encountered: [ErrorEXT] (SwapchainKHREXT) [ UNASSIGNED-CoreValidation-DrawState-SwapchainImageNotAcquired ] Object: 0x364d940000000031 (Type = 27) | vkQueuePresentKHR: Swapchain image index 0 has not been acquired.
at Veldrid.Vk.VkGraphicsDevice.DebugCallback(UInt32 flags, VkDebugReportObjectTypeEXT objectType, UInt64 object, UIntPtr location, Int32 messageCode, Byte* pLayerPrefix, Byte* pMessage, Void* pUserData) in C:\projects\veldrid\src\Veldrid\Vk\VkGraphicsDevice.cs:line 602
at Vulkan.VulkanNative.vkQueuePresentKHR(VkQueue queue, VkPresentInfoKHR& pPresentInfo)
at Veldrid.Vk.VkGraphicsDevice.SwapBuffersCore(Swapchain swapchain) in C:\projects\veldrid\src\Veldrid\Vk\VkGraphicsDevice.cs:line 334
at GettingStarted.Program.Draw() in D:\Projects\veldrid-samples\src\GettingStarted\Program.cs:line 166
at GettingStarted.Program.Main(String[] args) in D:\Projects\veldrid-samples\src\GettingStarted\Program.cs:line 67
PS: At the same time, TexturedCube sample with same alterations made in SampleBase runs without any issues
PS: Debug set to false prevents exception, but in this case when I resize window - image does not stretch with the window as expected
Conditions:
_graphicsDevice = VeldridStartup.CreateGraphicsDevice(window, new GraphicsDeviceOptions { Debug = true, PreferStandardClipSpaceYDirection = true }, GraphicsBackend.Vulkan);
Runs fine, but window resizing or maximization leads to following exception:
PS: At the same time,
TexturedCube
sample with same alterations made inSampleBase
runs without any issues PS:Debug
set to false prevents exception, but in this case when I resize window - image does not stretch with the window as expected