#[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 more