Enum SamplerAddressingMode
#[repr(i32)]pub enum SamplerAddressingMode {
AddressingModeWrap = 0,
AddressingModeMirror = 1,
AddressingModeClamp = 2,
AddressingModeMirrorOnce = 3,
AddressingModeClampBorder = 4,
}Expand description
Legacy version of enum “kanzi.Sampler.AddressingMode”.
Variants§
AddressingModeWrap = 0
Wrap (Open GL ES 2 compatible)
AddressingModeMirror = 1
Mirror (Open GL ES 2 compatible)
AddressingModeClamp = 2
Clamp (Open GL ES 2 compatible)
AddressingModeMirrorOnce = 3
Mirror once (requires extension)
AddressingModeClampBorder = 4
Clamp to border
Implementations§
§impl SamplerAddressingMode
impl SamplerAddressingMode
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> SamplerAddressingMode
Trait Implementations§
§impl Clone for SamplerAddressingMode
impl Clone for SamplerAddressingMode
§fn clone(&self) -> SamplerAddressingMode
fn clone(&self) -> SamplerAddressingMode
Returns a duplicate 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 more§impl Debug for SamplerAddressingMode
impl Debug for SamplerAddressingMode
§impl Display for SamplerAddressingMode
impl Display for SamplerAddressingMode
§impl PartialEq for SamplerAddressingMode
impl PartialEq for SamplerAddressingMode
§impl VariantConstraint for SamplerAddressingMode
impl VariantConstraint for SamplerAddressingMode
§type DataArg<'a> = SamplerAddressingMode
type DataArg<'a> = SamplerAddressingMode
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = SamplerAddressingMode
type RetArg = SamplerAddressingMode
§fn as_arg(&self) -> <SamplerAddressingMode as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <SamplerAddressingMode as VariantConstraint>::DataArg<'_>
impl Copy for SamplerAddressingMode
impl Eq for SamplerAddressingMode
impl PropertyTypeConstraint for SamplerAddressingMode
impl StructuralPartialEq for SamplerAddressingMode
Auto Trait Implementations§
impl Freeze for SamplerAddressingMode
impl RefUnwindSafe for SamplerAddressingMode
impl Send for SamplerAddressingMode
impl Sync for SamplerAddressingMode
impl Unpin for SamplerAddressingMode
impl UnwindSafe for SamplerAddressingMode
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