-
Notifications
You must be signed in to change notification settings - Fork 501
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
Retrieve the description of an image #568
Comments
Yep, that's an area where I haven't made up my mind yet :) Some background: originally, sokol-gfx was going to be a strict "input-only" API, if you wanted to retrive information about resources, you'd have to store this information yourself somewhere. But this was too 'extreme', so at some point I added the At some point this was cleaned up, and every resource type now has a backend-agnostic Lines 3008 to 3028 in 896497a
After this cleanup it would make sense to return the data in those common-structs. There are some counter-points though:
...that's my current thinking... so basically: yes, it's very likely that the query-functions will return more information, but it won't be the original desc-structs :) |
Ok, thanks, it makes sense |
This is now fixed via #796 |
When we create an image with
sg_make_image
, we pass it asg_image_desc
with the width/height and other parameters. As far as I can see, it's not possible to retrieve it. The only thing that we can retrieve is ansg_image_info
which gives us the width/height but why can't we get back the original desc structure with all the fields? Isn't is useful sometimes to know the other parameters? (maybe I'm dumb and we just don't care, but this seems strange to me)The text was updated successfully, but these errors were encountered: