-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
GPU: Add SDL_CalculateGPUTextureFormatSize #11146
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If not as an export, maybe as part of documentation for the blocksize functions?
I'm fine with this. It looks like BytesPerImage needs to be replaced with a call to this function? |
51a381a
to
d950363
Compare
Update include/SDL3/SDL_gpu.h Co-authored-by: Sam Lantinga <[email protected]>
f5e8839
to
1e12805
Compare
Addressed all the comments, let me know if there's anything else. |
This is a fairly common client need and it's annoyingly nuanced to implement, so we should expose it.