Enum azul_glium::draw_parameters::DepthClamp
source · pub enum DepthClamp {
NoClamp,
Clamp,
ClampNear,
ClampFar,
}
Expand description
Specifies whether the depth value of samples should be clamped to 0.0
or 1.0
.
Variants§
NoClamp
Do not clamp. Samples with values outside of the [0.0, 1.0]
range will be discarded.
This is the default value and is supported everywhere.
Clamp
Clamp the depth values. All samples will always be drawn.
This value is only supported on OpenGL.
ClampNear
Depth values inferior to 0.0
will be clamped to 0.0
.
This option is supported only by very few OpenGL devices.
ClampFar
Depth values superior to 1.0
will be clamped to 1.0
.
This option is supported only by very few OpenGL devices.
Trait Implementations§
source§impl Clone for DepthClamp
impl Clone for DepthClamp
source§fn clone(&self) -> DepthClamp
fn clone(&self) -> DepthClamp
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DepthClamp
impl Debug for DepthClamp
source§impl PartialEq<DepthClamp> for DepthClamp
impl PartialEq<DepthClamp> for DepthClamp
source§fn eq(&self, other: &DepthClamp) -> bool
fn eq(&self, other: &DepthClamp) -> bool
impl Copy for DepthClamp
impl Eq for DepthClamp
impl StructuralEq for DepthClamp
impl StructuralPartialEq for DepthClamp
Auto Trait Implementations§
impl RefUnwindSafe for DepthClamp
impl Send for DepthClamp
impl Sync for DepthClamp
impl Unpin for DepthClamp
impl UnwindSafe for DepthClamp
Blanket Implementations§
source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
source§fn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
fn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
Prepares an output buffer, then turns this buffer into an
Owned
.source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.