Struct glium::draw_parameters::Depth
[−]
[src]
pub struct Depth {
pub test: DepthTest,
pub write: bool,
pub range: (f32, f32),
pub clamp: DepthClamp,
}Represents the depth parameters of a draw command.
Fields
test | The function that the GPU will use to determine whether to write over an existing pixel
on the target. Don't forget to set See the The default is |
write | Sets whether the GPU will write the depth values on the depth buffer if they pass the depth test. The default is If you pass |
range | The range of possible Z values in surface coordinates. Just like OpenGL turns X and Y coordinates between The two values must be between The first value of the tuple must be the "near" value, where |
clamp | Sets whether the depth values of samples should be clamped to The default value is |