You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_sg_pixelformat_bytesize Would be useful to expose to users.
I have a texture manager abstraction that internally creates sg_images.
Its API accepts sg_pixel_format(s) from callers, and width and height parameters,
and it would be nice to be able to use _sg_pixelformat_bytesize to calculate data size.
The text was updated successfully, but these errors were encountered:
Ok, this is now merged. I also exposed two helper functions to compute the number of bytes in a texture row and surface, which might actually be a bit more useful.
_sg_pixelformat_bytesize
Would be useful to expose to users.I have a texture manager abstraction that internally creates sg_images.
Its API accepts
sg_pixel_format
(s) from callers, and width and height parameters,and it would be nice to be able to use
_sg_pixelformat_bytesize
to calculate data size.The text was updated successfully, but these errors were encountered: