I'd like to use WebGL Extensions from within Rust code that is compiled to WebAssembly. The web_sys::WebGlRenderingContext
has a method get_extension
which returns a JsValue
.
I expect there is a way to either use the dyn_into
method to get an ANGLE_instanced_arrays
interface, which according to this webidl may be included in web_sys
somewhere, but I can't seem to get at it. If it's not possible to get to the ANGLE_instanced_arrays
interface, is it possible to call known methods and properties using the JsValue
directly?
As per this issue: wasm-bindgen issue 893 - Figure out how to support interfaces with NoInterfaceObject
attribute The WebGL extensions should be available in the next release.