protonscr

D3D11SwapChain: Failed to recreate surface: VK_ERROR_OUT_OF_HOST_MEMORY

dxvkclosed
doitsujin/dxvk#4204 · opened 2024-08-13 by IriaSomobu · updated 2024-08-13 · 0 comments · github
IIriaSomobu 2024-08-13 github

If someone is as silly as me got this error log:

err:   D3D11SwapChain: Failed to recreate surface: VK_ERROR_OUT_OF_HOST_MEMORY
err:   DXGI: CreateSwapChainForHwnd: Failed to create swap chain, hr -2147467259

-- friend, you just forgot to set SDL_WINDOW_VULKAN flag while creating SDL window.

You have to summon window like this:

hwnd = SDL_CreateWindow(
    "An SDL2 window",
    SDL_WINDOWPOS_UNDEFINED,
    SDL_WINDOWPOS_UNDEFINED,
    640, 480,
    SDL_WINDOW_SHOWN | SDL_WINDOW_VULKAN
);

Launch options