pub 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,
cx: &mut JSContext,
view: &D::XRView,
) -> Option<DomRoot<D::XRViewport>>;
fn GetNativeFramebufferScaleFactor(
global: &D::Window,
session: &D::XRSession,
) -> Finite<f64>;
fn Constructor(
cx: &mut JSContext,
global: &D::Window,
proto: Option<HandleObject<'_>>,
session: &D::XRSession,
context: WebGLRenderingContextOrWebGL2RenderingContext<D>,
layerInit: &XRWebGLLayerInit,
) -> Fallible<DomRoot<D::XRWebGLLayer>>;
}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, cx: &mut JSContext, view: &D::XRView, ) -> Option<DomRoot<D::XRViewport>>
fn GetNativeFramebufferScaleFactor( global: &D::Window, session: &D::XRSession, ) -> Finite<f64>
fn Constructor( cx: &mut JSContext, global: &D::Window, proto: Option<HandleObject<'_>>, session: &D::XRSession, context: WebGLRenderingContextOrWebGL2RenderingContext<D>, layerInit: &XRWebGLLayerInit, ) -> Fallible<DomRoot<D::XRWebGLLayer>>
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.