Skip to content

Cannot access ANGLE_instanced_arrays or other extensions #1257

Closed
@ZacLiveEarth

Description

@ZacLiveEarth

I'm trying to use WebGL extensions within web_sys, but cannot seem to access the ANGLE_instanced_arrays interface that exists in this webidl - https://github.com/rustwasm/wasm-bindgen/blob/master/crates/web-sys/webidls/enabled/WebGLRenderingContext.webidl

Here is what I've tried...
let ext = context.get_extension("ANGLE_instanced_arrays").unwrap().unwrap();
let inst_arrays = ext.dyn_into::<web_sys::ANGLE_instanced_arrays>();

I've opened a related StackOverflow question here: but wasn't sure that would get your attention.

Apologies if this is something obvious, today is my first day writing Rust.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions