ctx.PixelFormat.RGBA32F is not renderable in WebGL2?
See original GitHub issueCan’t make any rg.* node work with pixelFormat: ctx.PixelFormat.RGBA32F. I get empty texture. ctx.PixelFormat.RGBA16F works fine. Tried both Linear and Nearest filtering.
Not needed (i can change older r.g. node to use 16F) but i wonder why is that?
Issue Analytics
- State:
- Created a year ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Issues · pex-gl/pex-context - GitHub
ctx.PixelFormat.RGBA32F is not renderable in WebGL2? #122 opened on Jun 17 by vorg · 2 · ImageBitmap is only supported in WebGL2 bug....
Read more >WebGL2 3D - Data Textures
Sized Format Base Format R bits G bits Color renderable Texture filterable
R8 RED 8 ○ ○
R8_SNORM RED s8 ○
RG8 RG 8 8 ○...
Read more >renderable texture formats in WebGL 2 ? - Google Groups
RGBA32F, gl.FLOAT, pix); (or TexStorage2D :) Can I render into Float textures ... What I don't know is whether some WebGL2 extension to...
Read more >WebGLRenderingContext.texImage2D() - Web APIs | MDN
A GLenum specifying the color components in the texture. Possible values in both WebGL1 and WebGL2. Format, Type, Channels, Bytes per pixel ...
Read more >pex-context
pex-context. Modern WebGL state wrapper for PEX. With pex-context you allocate GPU resources (textures, buffers), setup state pipelines and passes and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

And we have not, are not and will not use them. I would prefer go back to top 10 used and add more if ever needed (i doubt it).
FYI, the list of renderable formats is long: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/renderbufferStorage
So I removed the check in renderBuffer (b736415) but if you prefer I can do a big
[...renderableFormats].includes(renderbuffer.pixelFormat)instead.