[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Public WebGL] Should WebGLContextAttributes be a callback interface?

https://www.khronos.org/registry/webgl/specs/latest/#5.2 says yes.

https://www.khronos.org/registry/webgl/specs/latest/webgl.idl says no.

Is the mismatch expected?

I'm not sure why this is declared as a callback interface. https://www.khronos.org/registry/webgl/specs/latest/#2.1 talks about using the options object passed to getContext to set up the WebGLContextAttributes, but that doesn't require the WebGLContextAttributes to be a callback interface. Is the expectation that getContextAttributes will return the same object (when compared with === in JS, say) as was passed to getContext(), or a new object which only has the relevant attributes on it?

In any case, it seems like the attributes should be readonly, right?


You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl