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

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

Derived Implementations

impl Eq for DepthClamp

impl PartialEq for DepthClamp

fn eq(&self, __arg_0: &DepthClamp) -> bool

fn ne(&self, __arg_0: &DepthClamp) -> bool

impl Debug for DepthClamp

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for DepthClamp

impl Clone for DepthClamp

fn clone(&self) -> DepthClamp

fn clone_from(&mut self, source: &Self)