Skip to content

Failing to create Vulkan swapchain under SDL2 #322

@markusbkk

Description

@markusbkk

I'd appreciate some pointers with this.

Based on the HelloLinux example, I'm trying (but failing) to implement a renderer that uses SDL2 windows.

My code can be found here: https://gist.github.com/markusbkk/9590c56a30c68acb230b7de9fb6a2307#file-hellodiligent-cpp-L219-L225

I followed some of the pointers given in #290

My code currently returns the following error messages:

Diligent Engine: ERROR in CreateSurface() (SwapChainVkImpl.cpp, 139): Failed to create OS-specific surface
VK Error Code: ERROR_OUT_OF_HOST_MEMORY
Diligent Engine: ERROR in CreateSwapChainVk() (EngineFactoryVk.cpp, 1399): Failed to create the swap chain
Segmentation fault (core dumped)

All the original samples work, so I think one can rule out a misconfigured Vulkan SDK.

  • OS and version you are running (e.g. Windows 10.0.18362, MacOS Catalina 10.15, etc.)

Pop!OS 22.04

  • Build tools and configuration you used to build the engine (e.g. Visual Studio 2017 Debug x64 + CMake 3.15.4)

CMake 3.22.1

  • GPU and driver version you have installed on your system

AMD 760M (iGPU/APU) running xserver-xorg-video-amdgpu 22.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions