2026-10-23 18:04 UTC
Replies (4)
-
@cwebber@social.coop 2026-10-23 18:28
@mcc@mastodon.social are you telling me that IEEE floating point isn't your preferred way to make integers
-
@lisyarus@mastodon.gamedev.place 2026-10-24 05:05
@mcc@mastodon.social @cwebber@social.coop What do you mean by "only available in WebGPU and Vulkan"? It's been part of OpenGL (well, of GLSL) for ages as well: https://registry.khronos.org/OpenGL-Refpages/gl4/html/texelFetch.xhtml
-
@AminiAllight@mastodon.gamedev.place 2026-10-24 05:09
@mcc@mastodon.social @cwebber@social.coop A storage image has never surprised me and that's a good thing
-
@floooh@mastodon.gamedev.place 2026-10-24 10:05
@mcc@mastodon.social @cwebber@social.coop texelFetch() with direct integer coordinates works fine in WebGL2 and GLES3 btw, e.g. you don't need a modern API for that. Technically it's still associated with a sampler (because of GL's combined-image-samplers) but I guess the sampler properties are ignored. I use that in various sokol samples (e.g. here loading data from a texture in a vertex shader: https://floooh.github.io/sokol-html5/ozz-skin-sapp.html