Struct xc3_model::TextureAlphaTest
source · pub struct TextureAlphaTest {
pub texture_index: usize,
pub channel_index: usize,
pub ref_value: f32,
}Expand description
Information for alpha testing based on sampled texture values.
Fields§
§texture_index: usizeThe texture in textures used for alpha testing.
channel_index: usizeThe RGBA channel to sample for the comparison.
ref_value: f32Trait Implementations§
source§impl Clone for TextureAlphaTest
impl Clone for TextureAlphaTest
source§fn clone(&self) -> TextureAlphaTest
fn clone(&self) -> TextureAlphaTest
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 TextureAlphaTest
impl Debug for TextureAlphaTest
source§impl PartialEq for TextureAlphaTest
impl PartialEq for TextureAlphaTest
source§fn eq(&self, other: &TextureAlphaTest) -> bool
fn eq(&self, other: &TextureAlphaTest) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TextureAlphaTest
Auto Trait Implementations§
impl RefUnwindSafe for TextureAlphaTest
impl Send for TextureAlphaTest
impl Sync for TextureAlphaTest
impl Unpin for TextureAlphaTest
impl UnwindSafe for TextureAlphaTest
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