#[repr(u32)]pub enum DisplayBlend {
None = 0,
Opaque = 1,
Additive = 2,
Blend = 4,
AnyTransparent = 6,
}
Expand description
This describes the way the display’s content blends with whatever is behind it. VR headsets are normally Opaque, but some VR headsets provide passthrough video, and can support Opaque as well as Blend, like the Varjo. Transparent AR displays like the HoloLens would be Additive. https://stereokit.net/Pages/StereoKit/DisplayBlend.html
see also SkSettings::blend_preference
Variants§
None = 0
Default value, when using this as a search type, it will fall back to default behavior which defers to platform preference.
Opaque = 1
This display is opaque, with no view into the real world! This is equivalent to a VR headset, or a PC screen.
Additive = 2
This display is transparent, and adds light on top of the real world. This is equivalent to a HoloLens type of device.
Blend = 4
This is a physically opaque display, but with a camera passthrough displaying the world behind it anyhow. This would be like a Varjo XR-1, or phone-camera based AR.
AnyTransparent = 6
This matches either transparent display type! Additive or Blend. For use when you just want to see the world behind your application.
Trait Implementations§
Source§impl Clone for DisplayBlend
impl Clone for DisplayBlend
Source§fn clone(&self) -> DisplayBlend
fn clone(&self) -> DisplayBlend
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DisplayBlend
impl Debug for DisplayBlend
Source§impl PartialEq for DisplayBlend
impl PartialEq for DisplayBlend
impl Copy for DisplayBlend
impl Eq for DisplayBlend
impl StructuralPartialEq for DisplayBlend
Auto Trait Implementations§
impl Freeze for DisplayBlend
impl RefUnwindSafe for DisplayBlend
impl Send for DisplayBlend
impl Sync for DisplayBlend
impl Unpin for DisplayBlend
impl UnwindSafe for DisplayBlend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.