Enum naga::SampleLevel
source · pub enum SampleLevel {
Auto,
Zero,
Exact(Handle<Expression>),
Bias(Handle<Expression>),
Gradient {
x: Handle<Expression>,
y: Handle<Expression>,
},
}
Expand description
Sampling modifier to control the level of detail.
All Handle<Expression>
values here refer to an expression in
Function::expressions
.
Variants§
Implementations§
source§impl SampleLevel
impl SampleLevel
pub const fn implicit_derivatives(&self) -> bool
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for SampleLevel
impl<'arbitrary> Arbitrary<'arbitrary> for SampleLevel
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Clone for SampleLevel
impl Clone for SampleLevel
source§fn clone(&self) -> SampleLevel
fn clone(&self) -> SampleLevel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SampleLevel
impl Debug for SampleLevel
source§impl<'de> Deserialize<'de> for SampleLevel
impl<'de> Deserialize<'de> for SampleLevel
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for SampleLevel
impl PartialEq for SampleLevel
source§fn eq(&self, other: &SampleLevel) -> bool
fn eq(&self, other: &SampleLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SampleLevel
impl Serialize for SampleLevel
impl Copy for SampleLevel
impl StructuralPartialEq for SampleLevel
Auto Trait Implementations§
impl RefUnwindSafe for SampleLevel
impl Send for SampleLevel
impl Sync for SampleLevel
impl Unpin for SampleLevel
impl UnwindSafe for SampleLevel
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
Mutably borrows from an owned value. Read more