Update Canvas Debugger for WebGL 2

NEW
Unassigned

Status

()

Firefox
Developer Tools: Canvas Debugger
P3
enhancement
2 years ago
2 months ago

People

(Reporter: jgilbert, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
WebGL 2 is on by default in Nightly, so we should ensure that it works with the debugger.
Can we have the links, to what's there now, in this bug?
(Reporter)

Comment 2

2 years ago
It seems to be:
devtools/server/actors/canvas.js

I think the code in devtools/client/canvasdebugger is for the UI.

Among other things, we need to:
* add webgl2 to CANVAS_CONTEXTS
* add to the list of DRAW_CALLS (we should include the instancing extension from WebGL 1 as well)
* Update to handle DRAW/READ_FRAMEBUFFER properly
* createBoundFramebuffer needs to respect context creation options (depth/stencil/alpha) (don't worry about dealing with antialias)

We need to find out:
* Does this rely on taking snapshots of framebuffers
* Does this work for self-mutating content (transform feedback and render-to-texture)

Hopefully vporof can help us out with information here.
Flags: needinfo?(vporof)
Indeed devtools/server/actors/canvas.js is the right place to make changes.

Framebuffer contents are retrieved for displaying a preview of whatever has been rendered in an animation frame (I assume that's what you're referring to with "taking snapshots"?). However, non-null framebuffer attachments are currently ignored and tracked in bug 1140731.
Flags: needinfo?(vporof)

Updated

2 months ago
Severity: normal → enhancement
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.