Closed Bug 1385431 Opened 7 years ago Closed 4 years ago

WebGL rendering on RGB32F textures

Categories

(Core :: Graphics: CanvasWebGL, enhancement, P3)

54 Branch
enhancement

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox55 --- wontfix
firefox56 --- fix-optional
firefox57 --- fix-optional

People

(Reporter: matteobracci1, Unassigned)

Details

(Whiteboard: [gfx-noted])

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Steps to reproduce:

https://jsfiddle.net/greggman/4k2jfn24/

Tried rendering on an RGB32F texture using WebGL.


Actual results:

framebufferStatus says that the framebuffer is not complete and complains about the RGB32F texture color attachment. Rendering does not work.


Expected results:

Although the WEBGL_color_buffer_float extension does not guarantee support for RGB32F texture formats, I was expecting it to work. Chrome offers support for it. Maybe it is intended for it to not be working, although it seems weird...
You user agent looks like is Google Chrome 59.

I have tried it on Chrome 62

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3172.2 Safari/537.36

The error message is
"got:  OES_texture_float
no: [ WEBGL_color_buffer_float ] but not required
framebufferStatus should be FRAMEBUFFER_COMPLETE was: FRAMEBUFFER_COMPLETE
gl error: NONE"

And, in Firefox 56
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0

It shows very similar 
got:  OES_texture_float
got:  WEBGL_color_buffer_float
framebufferStatus should be FRAMEBUFFER_COMPLETE was: FRAMEBUFFER_INCOMPLETE_ATTACHMENT
gl error: NONE
I can reproduce it on Mac as well, I think it is blocked by our validation mechanism.

CC Jeff for further information.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Whiteboard: [gfx-noted]

I think Chrome emulates RGB32F on RGBA32. I think we should not do this, because we'd prefer users to recognize that there's no native RGB32F support, and emulate (which is pretty easy) it manually instead.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
Type: defect → enhancement
You need to log in before you can comment on or make changes to this bug.