Enum glium::draw_parameters::DepthClamp
[−]
[src]
pub enum DepthClamp {
NoClamp,
Clamp,
ClampNear,
ClampFar,
}Specifies whether the depth value of samples should be clamped to 0.0 or 1.0.
Variants
NoClampDo 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.
ClampClamp the depth values. All samples will always be drawn.
This value is only supported on OpenGL.
ClampNearDepth values inferior to 0.0 will be clamped to 0.0.
This option is supported only by very few OpenGL devices.
ClampFarDepth values superior to 1.0 will be clamped to 1.0.
This option is supported only by very few OpenGL devices.
Trait Implementations
impl Eq for DepthClamp[src]
impl PartialEq for DepthClamp[src]
fn eq(&self, __arg_0: &DepthClamp) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Debug for DepthClamp[src]
impl Copy for DepthClamp[src]
impl Clone for DepthClamp[src]
fn clone(&self) -> DepthClamp
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more