Skip to main content

mln_util/
clip_depth.rs

1/// How a graphics API's clip space holds depth.
2#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
3pub enum ClipDepthRange {
4    /// Clip z from 0 to w: Metal, Vulkan, D3D12 and WebGPU.
5    ZeroToOne,
6    /// Clip z from -w to w: OpenGL.
7    NegativeOneToOne,
8}