floooh / sokol

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

sokol_gfx.h: allow multisampled images as resource bindings #1155

Closed floooh closed 1 week ago

floooh commented 1 week ago

Allows to fetch samples in shader from multisampled textures (for instance to allow custom-resolve render passes).

Not supported on WebGL2/GLES3 because no of missing support for multisampled texture objects, and also not on macOS because it just doesn't seem to work (even though the required function exist, but only in gl3ext.h, not in gl3.h).

Related ticket: https://github.com/floooh/sokol/issues/1142