Struct ddsfile::PixelFormat [] [src]

pub struct PixelFormat {
    pub size: u32,
    pub flags: PixelFormatFlags,
    pub fourcc: Option<FourCC>,
    pub rgb_bit_count: Option<u32>,
    pub r_bit_mask: Option<u32>,
    pub g_bit_mask: Option<u32>,
    pub b_bit_mask: Option<u32>,
    pub a_bit_mask: Option<u32>,
}

Fields

Size of this structure in bytes; set to 32

Values which indicate what type of data is in the surface

Codes for specifying compressed or custom formats.

Number of bits in an RGB (possibly including alpha) format. Valid when flags includes RGB or LUMINANCE.

Red (or Y) mask for reading color data. For instance, given the A8R8G8B8 format, the red mask would be 0x00ff0000.

Green (or U) mask for reading color data. For instance, given the A8R8G8B8 format, the green mask would be 0x0000ff00.

Blue (or V) mask for reading color data. For instance, given the A8R8G8B8 format, the blue mask would be 0x000000ff

Alpha mask for reading alpha data. Valid of flags includes ALPHA_PIXELS or ALPHA. For instance, given the A8R8G8B8 format, the alpha mask would be 0xff000000

Methods

impl PixelFormat
[src]

[src]

[src]

Trait Implementations

impl Clone for PixelFormat
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for PixelFormat
[src]

[src]

Formats the value using the given formatter.

impl Default for PixelFormat
[src]

[src]

Returns the "default value" for a type. Read more

impl From<D3DFormat> for PixelFormat
[src]

[src]

Performs the conversion.

impl From<DxgiFormat> for PixelFormat
[src]

[src]

Performs the conversion.