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

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§