Closed Bug 1522018 Opened Last year Closed Last year

Implement webgl draft ext EXT_float_blend

Categories

(Core :: Canvas: WebGL, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox66 --- wontfix
firefox67 --- fixed

People

(Reporter: jgilbert, Assigned: jgilbert)

References

()

Details

(Keywords: dev-doc-complete, Whiteboard: gfx-noted)

Attachments

(1 file, 1 obsolete file)

No description provided.
Attachment #9038417 - Attachment is obsolete: true

This has a chance to break existing content, so let's slip it to 67.
Previously, we didn't validate that float32 rendertargets should not be blendable.

Summary: Implement webgl draft ext EXT_blend_float → Implement webgl draft ext EXT_float_blend
Pushed by jgilbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d324c3cd63b3
Implement webgl draft ext EXT_float_blend. r=lsalzman,qdot
Status: NEW → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Blocks: 1524713

Extension mentioned on (and marked as draft/experimental)
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API#Extensions
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Using_Extensions
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getSupportedExtensions
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getExtension

New reference page
https://developer.mozilla.org/en-US/docs/Web/API/EXT_float_blend

Not in release notes, but listed along with other features behind a pref on our "Experimental features" page
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features#Canvas_WebGL

Compat data
https://github.com/mdn/browser-compat-data/pull/3569

I noticed that when calling gl.getSupportedExtensions "EXT_float_blend" is not in the list even when the pref "webgl.enable-draft-extensions" is enabled. Maybe this is correct per spec as it is still a draft.

Can you give this a quick review, :jgilbert?

Flags: needinfo?(jgilbert)

I'm seeing EXT_float_blend with enable-draft-extensions at least on Windows:

< gl.getSupportedExtensions().join('\n')
> "ANGLE_instanced_arrays
  EXT_blend_minmax
  EXT_color_buffer_half_float
  EXT_float_blend

I updated the example to show creation of the webgl2 context, since if someone tries the example with a webgl1 gl, they'll be asking for the wrong extension.

Thanks for writing this!

Flags: needinfo?(jgilbert)

I'm seeing EXT_float_blend with enable-draft-extensions at least on Windows

I'm seeing it as well now. Sorry, probably an oversight yesterday. Thanks for checking.

I updated the example to show creation of the webgl2 context, since if someone tries the example with a webgl1 gl, they'll be asking for the wrong extension.

Great catch, thanks!

Blocks: 1535808
You need to log in before you can comment on or make changes to this bug.