libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
9.98k stars 1.84k forks source link

[SDL_GPU] VK_ERROR_OUT_OF_DEVICE_MEMORY when opening capture with RenderDoc #11481

Closed toodemhard closed 3 hours ago

toodemhard commented 5 hours ago

I encountered this when trying to capture https://github.com/TheSpydog/SDL_gpu_examples and my own SDL_GPU app which is just a basic textured quad. The app runs fine and can be captured but when opening the capture which I assume does some playback stuff, an exception from Vulkan occurs. I think this occurs in any minimal app using SDL_GPU.

RenderDoc works with SDL_Renderer so I suspect this is an SDL_GPU issue.

image

thatcosmonaut commented 3 hours ago

I use Renderdoc for SDL GPU debugging all the time without issue so I am not convinced this is our fault. It would help to see some code. Have you tried running with the validation layers?

toodemhard commented 3 hours ago

My bad it's not SDL's fault it was "OpenCL™, OpenGL®, and Vulkan® Compatibility Pack" emulation layer installed by laptop manufacturer that I had to uninstall. SDL_Renderer worked because it was d3d12. RenderDoc dev helped me solve it.