#[repr(C, packed(1))]pub struct TextureSwizzleChannels {
pub red: TextureSwizzle,
pub green: TextureSwizzle,
pub blue: TextureSwizzle,
pub alpha: TextureSwizzle,
}Expand description
Texture swizzle channels structure.
C++ equivalent: MTL::TextureSwizzleChannels
Fields§
§red: TextureSwizzle§green: TextureSwizzle§blue: TextureSwizzle§alpha: TextureSwizzleImplementations§
Source§impl TextureSwizzleChannels
impl TextureSwizzleChannels
Sourcepub const fn new(
red: TextureSwizzle,
green: TextureSwizzle,
blue: TextureSwizzle,
alpha: TextureSwizzle,
) -> Self
pub const fn new( red: TextureSwizzle, green: TextureSwizzle, blue: TextureSwizzle, alpha: TextureSwizzle, ) -> Self
Create a new TextureSwizzleChannels.
Sourcepub const fn make(
r: TextureSwizzle,
g: TextureSwizzle,
b: TextureSwizzle,
a: TextureSwizzle,
) -> Self
pub const fn make( r: TextureSwizzle, g: TextureSwizzle, b: TextureSwizzle, a: TextureSwizzle, ) -> Self
Create a new TextureSwizzleChannels (C++ style factory method).
C++ equivalent: static TextureSwizzleChannels Make(...)
Sourcepub const fn default_channels() -> Self
pub const fn default_channels() -> Self
Get the default swizzle channels (identity mapping).
C++ equivalent: static TextureSwizzleChannels Default()
Trait Implementations§
Source§impl Clone for TextureSwizzleChannels
impl Clone for TextureSwizzleChannels
Source§fn clone(&self) -> TextureSwizzleChannels
fn clone(&self) -> TextureSwizzleChannels
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 moreSource§impl Debug for TextureSwizzleChannels
impl Debug for TextureSwizzleChannels
Source§impl Default for TextureSwizzleChannels
impl Default for TextureSwizzleChannels
Source§impl Hash for TextureSwizzleChannels
impl Hash for TextureSwizzleChannels
Source§impl PartialEq for TextureSwizzleChannels
impl PartialEq for TextureSwizzleChannels
impl Copy for TextureSwizzleChannels
impl Eq for TextureSwizzleChannels
impl StructuralPartialEq for TextureSwizzleChannels
Auto Trait Implementations§
impl Freeze for TextureSwizzleChannels
impl RefUnwindSafe for TextureSwizzleChannels
impl Send for TextureSwizzleChannels
impl Sync for TextureSwizzleChannels
impl Unpin for TextureSwizzleChannels
impl UnwindSafe for TextureSwizzleChannels
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