floooh / sokol

minimal cross-platform standalone C headers
https://floooh.github.io/sokol-html5
zlib License
6.55k stars 469 forks source link

Add backend-specific resource info functions. #931

Closed floooh closed 8 months ago

floooh commented 8 months ago

Those functions would allow to get the backend-API-specific resource objects wrapped by sg_buffer, sg_image, etc...

New structs and functions:

sg_[api]_[type]_info sg_query_[api]_[type]_info(handle)

Where [api] is [d3d11, gl, metal, wgpu] and type is [buffer, image, sampler, shader, pipeline, pass].

TODO: