-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDL_gpu Backend #8160
SDL_gpu Backend #8160
Conversation
Thank you for the PR. Some feedback:
Thanks! |
I think I've added everything? I wrote a vcproj example and added it to the solution (hopefully without having screw up anything), added comments and tried to fix the formatting everywhere I could. I tried writing a makefile but I'm really bad at those |
Update main.cpp for example
…into SDL_GPU" This reverts commit b5fec58.
I made an absolute mess with the commits and I don't think I can fix anything, I'm just gonna close this pull request and make a new one without causing problems this time if it's ok. Sorry, I'm not very familiar with git |
Now that SDL3 has reached ABI stability, I've added a SDL_Gpu backend to ImGui. The only notable difference from other backends lies in the fact that SDL_Gpu doesn't allow copy passes to occur during a renderpass.
There are two solutions to this problem (that I thought of):
Imgui_ImplSDLGPU_PrepareDrawData
before starting a user-created RenderPass, which uploads all the vertex/index buffer data.I chose the second option because I thought it was the more useful one, but the code can be rewritten easily to support the former if deemed necessary. I've included shaders for SPIRV, DXCB and METALLIB for MacOS, I'll be able to compile the remaining ones for iOS and tvOS as soon as I'm able to install the SDKs for those