Struct gfx::format::Swizzle []

pub struct Swizzle(pub ChannelSource, pub ChannelSource, pub ChannelSource, pub ChannelSource);

Channel swizzle configuration for the resource views. Note: It's not currently mirrored at compile-time, thus providing less safety and convenience.

Methods

impl Swizzle

Create a new swizzle where each channel is unmapped.

Trait Implementations

impl Debug for Swizzle

Formats the value using the given formatter.

impl PartialOrd<Swizzle> for Swizzle

impl PartialEq<Swizzle> for Swizzle

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for Swizzle

impl Hash for Swizzle

impl Eq for Swizzle

impl Copy for Swizzle

impl Clone for Swizzle

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more