pub enum DepthTest {
Never = 512,
Always = 519,
Less = 513,
Equal = 514,
Lequal = 515,
Greater = 516,
Gequal = 518,
Notequal = 517,
}
Expand description
Constants passed to WebGLRenderingContext.depthFunc().
Variants§
Never = 512
Passed to depthFunction or stencilFunction to specify depth or stencil tests will never pass. i.e. Nothing will be drawn.
Always = 519
Passed to depthFunction or stencilFunction to specify depth or stencil tests will always pass. i.e. Pixels will be drawn in the order they are drawn.
Less = 513
Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than the stored value.
Equal = 514
Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is equals to the stored value.
Lequal = 515
Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than or equal to the stored value.
Greater = 516
Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than the stored value.
Gequal = 518
Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than or equal to the stored value.
Notequal = 517
Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is not equal to the stored value.
Trait Implementations§
Source§impl FromWasmAbi for DepthTest
impl FromWasmAbi for DepthTest
Source§impl IntoWasmAbi for DepthTest
impl IntoWasmAbi for DepthTest
Source§impl OptionFromWasmAbi for DepthTest
impl OptionFromWasmAbi for DepthTest
Source§impl OptionIntoWasmAbi for DepthTest
impl OptionIntoWasmAbi for DepthTest
Source§impl TryFromJsValue for DepthTest
impl TryFromJsValue for DepthTest
Source§impl VectorFromWasmAbi for DepthTest
impl VectorFromWasmAbi for DepthTest
Source§impl VectorIntoWasmAbi for DepthTest
impl VectorIntoWasmAbi for DepthTest
impl Copy for DepthTest
Auto Trait Implementations§
impl Freeze for DepthTest
impl RefUnwindSafe for DepthTest
impl Send for DepthTest
impl Sync for DepthTest
impl Unpin for DepthTest
impl UnwindSafe for DepthTest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.