Open domenic opened 2 months ago
In particular
gl.drawingBufferToneMapping = { mode:"extended" };
implies setting the value of an attribute to a dictionary. But Web IDL attributes cannot return dictionaries, so this would break.
You'd need either something like
gl.setDrawingBufferToneMapping({ mode: "extended" }); // now gl.getDrawinBufferToneMapping() can return a fresh dictionary each time
or
gl.drawingBufferToneMappingMode = "extended"; // and future extensions will also need to be flattened
Thanks for the input! I'll discuss with the WebGL people about resolving this. The WebGPU API is much nicer in terms of setting these properties.
In particular
implies setting the value of an attribute to a dictionary. But Web IDL attributes cannot return dictionaries, so this would break.
You'd need either something like
or