question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ctx.PixelFormat.RGBA32F is not renderable in WebGL2?

See original GitHub issue

Can’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:open
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
vorgcommented, Dec 2, 2022

FYI, the list of renderable formats is long:

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).

0reactions
dmnsgncommented, Dec 2, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found