Struct naga::EarlyDepthTest [−][src]
pub struct EarlyDepthTest { /* fields omitted */ }
Expand description
Early fragment tests. In a standard situation if a driver determines that it is possible to switch on early depth test it will. Typical situations when early depth test is switched off:
- Calling
discard
in a shader. - Writing to the depth buffer, unless ConservativeDepth is enabled.
SPIR-V: ExecutionMode EarlyFragmentTests In GLSL: layout(early_fragment_tests) in; HLSL: Attribute earlydepthstencil
For more, see:
- https://www.khronos.org/opengl/wiki/Early_Fragment_Test#Explicit_specification
- https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/sm5-attributes-earlydepthstencil
Trait Implementations
impl Clone for EarlyDepthTest
[src]
impl Clone for EarlyDepthTest
[src]fn clone(&self) -> EarlyDepthTest
[src]
fn clone(&self) -> EarlyDepthTest
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for EarlyDepthTest
[src]
impl Debug for EarlyDepthTest
[src]impl<'de> Deserialize<'de> for EarlyDepthTest
[src]
impl<'de> Deserialize<'de> for EarlyDepthTest
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Hash for EarlyDepthTest
[src]
impl Hash for EarlyDepthTest
[src]impl Ord for EarlyDepthTest
[src]
impl Ord for EarlyDepthTest
[src]impl PartialEq<EarlyDepthTest> for EarlyDepthTest
[src]
impl PartialEq<EarlyDepthTest> for EarlyDepthTest
[src]fn eq(&self, other: &EarlyDepthTest) -> bool
[src]
fn eq(&self, other: &EarlyDepthTest) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &EarlyDepthTest) -> bool
[src]
fn ne(&self, other: &EarlyDepthTest) -> bool
[src]This method tests for !=
.
impl PartialOrd<EarlyDepthTest> for EarlyDepthTest
[src]
impl PartialOrd<EarlyDepthTest> for EarlyDepthTest
[src]fn partial_cmp(&self, other: &EarlyDepthTest) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &EarlyDepthTest) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Serialize for EarlyDepthTest
[src]
impl Serialize for EarlyDepthTest
[src]impl Copy for EarlyDepthTest
[src]
impl Eq for EarlyDepthTest
[src]
impl StructuralEq for EarlyDepthTest
[src]
impl StructuralPartialEq for EarlyDepthTest
[src]
Auto Trait Implementations
impl RefUnwindSafe for EarlyDepthTest
impl Send for EarlyDepthTest
impl Sync for EarlyDepthTest
impl Unpin for EarlyDepthTest
impl UnwindSafe for EarlyDepthTest
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<N> NodeTrait for N where
N: Copy + Ord + Hash,
[src]
N: Copy + Ord + Hash,