pub(crate) trait XRWebGLBindingMethods<D: DomTypes> {
    // Required methods
    fn CreateProjectionLayer(
        &self,
        textureType: XRTextureType,
        init: &XRProjectionLayerInit,
    ) -> Fallible<DomRoot<D::XRProjectionLayer>>;
    fn CreateQuadLayer(
        &self,
        textureType: XRTextureType,
        init: &Option<XRQuadLayerInit<D>>,
    ) -> Fallible<DomRoot<D::XRQuadLayer>>;
    fn CreateCylinderLayer(
        &self,
        textureType: XRTextureType,
        init: &Option<XRCylinderLayerInit<D>>,
    ) -> Fallible<DomRoot<D::XRCylinderLayer>>;
    fn CreateEquirectLayer(
        &self,
        textureType: XRTextureType,
        init: &Option<XREquirectLayerInit<D>>,
    ) -> Fallible<DomRoot<D::XREquirectLayer>>;
    fn CreateCubeLayer(
        &self,
        init: &Option<XRCubeLayerInit<D>>,
    ) -> Fallible<DomRoot<D::XRCubeLayer>>;
    fn GetSubImage(
        &self,
        layer: &D::XRCompositionLayer,
        frame: &D::XRFrame,
        eye: XREye,
    ) -> Fallible<DomRoot<D::XRWebGLSubImage>>;
    fn GetViewSubImage(
        &self,
        layer: &D::XRProjectionLayer,
        view: &D::XRView,
    ) -> Fallible<DomRoot<D::XRWebGLSubImage>>;
    fn Constructor(
        global: &D::Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        session: &D::XRSession,
        context: WebGLRenderingContextOrWebGL2RenderingContext<D>,
    ) -> Fallible<DomRoot<D::XRWebGLBinding>>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§