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.
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.
You need to log in before you can comment on or make changes to this bug.