pub(crate) trait XRWebGLLayerMethods<D: DomTypes> {
    // Required methods
    fn Antialias(&self) -> bool;
    fn IgnoreDepthValues(&self) -> bool;
    fn GetFixedFoveation(&self) -> Option<Finite<f32>>;
    fn SetFixedFoveation(&self, value: Option<Finite<f32>>);
    fn GetFramebuffer(&self) -> Option<DomRoot<D::WebGLFramebuffer>>;
    fn FramebufferWidth(&self) -> u32;
    fn FramebufferHeight(&self) -> u32;
    fn GetViewport(&self, view: &D::XRView) -> Option<DomRoot<D::XRViewport>>;
    fn GetNativeFramebufferScaleFactor(
        global: &D::Window,
        session: &D::XRSession,
    ) -> Finite<f64>;
    fn Constructor(
        global: &D::Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        session: &D::XRSession,
        context: WebGLRenderingContextOrWebGL2RenderingContext<D>,
        layerInit: &XRWebGLLayerInit,
    ) -> Fallible<DomRoot<D::XRWebGLLayer>>;
}

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§