Closed Bug 1243618 Opened 8 years ago Closed 5 years ago

Update Canvas Debugger for WebGL 2

Categories

(DevTools Graveyard :: Canvas Debugger, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: jgilbert, Unassigned)

Details

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?
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)
Severity: normal → enhancement
Priority: -- → P3
Any news about that? Shader and canvas debugging doesn't work for Webgl 2.
Product: Firefox → DevTools
The code behind DevTools:Canvas Debugger has gone away. Closing this bug as INVALID
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.