[−][src]Enum fna3h::SurfaceFormat
Texture
or Renderbuffer
pixel data format (memory layout of each pixel)
Variants
Unsigned 32-bit ARGB pixel format for store 8 bits per channel
Unsigned 16-bit BGR pixel format for store 5 bits for blue, 6 bits for green, and 5 bits for red
Unsigned 16-bit BGRA pixel format where 5 bits reserved for each color and last bit is reserved for alpha
Unsigned 16-bit BGRA pixel format for store 4 bits per channel
DXT1. Texture format with compression. Surface dimensions must be a multiple 4
DXT3. Texture format with compression. Surface dimensions must be a multiple 4
DXT5. Texture format with compression. Surface dimensions must be a multiple 4
Signed 16-bit bump-map format for store 8 bits for u and v data.
Signed 16-bit bump-map format for store 8 bits per channel
Unsigned 32-bit RGBA pixel format for store 10 bits for each color and 2 bits for alpha
Unsigned 32-bit RG pixel format using 16 bits per channel
Unsigned 64-bit RGBA pixel format using 16 bits per channel
Unsigned A 8-bit format for store 8 bits to alpha channel
IEEE 32-bit R float format for store 32 bits to red channel
IEEE 64-bit RG float format for store 32 bits per channel
IEEE 128-bit RGBA float format for store 32 bits per channel
Float 16-bit R format for store 16 bits to red channel
Float 32-bit RG format for store 16 bits per channel
Float 64-bit ARGB format for store 16 bits per channel
Float pixel format for high dynamic range data
Unsigned 32-bit ABGR pixel format for store 8 bits per channel (XNA3)
Implementations
impl SurfaceFormat
[src]
Trait Implementations
impl Clone for SurfaceFormat
[src]
pub fn clone(&self) -> SurfaceFormat
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SurfaceFormat
[src]
impl Debug for SurfaceFormat
[src]
impl Eq for SurfaceFormat
[src]
impl FromPrimitive for SurfaceFormat
[src]
pub fn from_u64(val: u64) -> Option<SurfaceFormat>
[src]
pub fn from_i64(val: i64) -> Option<SurfaceFormat>
[src]
pub fn from_isize(n: isize) -> Option<Self>
[src]
pub fn from_i8(n: i8) -> Option<Self>
[src]
pub fn from_i16(n: i16) -> Option<Self>
[src]
pub fn from_i32(n: i32) -> Option<Self>
[src]
pub fn from_i128(n: i128) -> Option<Self>
[src]
pub fn from_usize(n: usize) -> Option<Self>
[src]
pub fn from_u8(n: u8) -> Option<Self>
[src]
pub fn from_u16(n: u16) -> Option<Self>
[src]
pub fn from_u32(n: u32) -> Option<Self>
[src]
pub fn from_u128(n: u128) -> Option<Self>
[src]
pub fn from_f32(n: f32) -> Option<Self>
[src]
pub fn from_f64(n: f64) -> Option<Self>
[src]
impl Hash for SurfaceFormat
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<SurfaceFormat> for SurfaceFormat
[src]
pub fn eq(&self, other: &SurfaceFormat) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for SurfaceFormat
[src]
impl StructuralPartialEq for SurfaceFormat
[src]
impl ToPrimitive for SurfaceFormat
[src]
pub fn to_u64(&self) -> Option<u64>
[src]
pub fn to_i64(&self) -> Option<i64>
[src]
pub fn to_isize(&self) -> Option<isize>
[src]
pub fn to_i8(&self) -> Option<i8>
[src]
pub fn to_i16(&self) -> Option<i16>
[src]
pub fn to_i32(&self) -> Option<i32>
[src]
pub fn to_i128(&self) -> Option<i128>
[src]
pub fn to_usize(&self) -> Option<usize>
[src]
pub fn to_u8(&self) -> Option<u8>
[src]
pub fn to_u16(&self) -> Option<u16>
[src]
pub fn to_u32(&self) -> Option<u32>
[src]
pub fn to_u128(&self) -> Option<u128>
[src]
pub fn to_f32(&self) -> Option<f32>
[src]
pub fn to_f64(&self) -> Option<f64>
[src]
impl TryFrom<i16> for SurfaceFormat
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_from(
value: i16
) -> Result<SurfaceFormat, <SurfaceFormat as TryFrom<i16>>::Error>
[src]
value: i16
) -> Result<SurfaceFormat, <SurfaceFormat as TryFrom<i16>>::Error>
impl TryFrom<i32> for SurfaceFormat
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_from(
value: i32
) -> Result<SurfaceFormat, <SurfaceFormat as TryFrom<i32>>::Error>
[src]
value: i32
) -> Result<SurfaceFormat, <SurfaceFormat as TryFrom<i32>>::Error>
impl TryFrom<i64> for SurfaceFormat
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_from(
value: i64
) -> Result<SurfaceFormat, <SurfaceFormat as TryFrom<i64>>::Error>
[src]
value: i64
) -> Result<SurfaceFormat, <SurfaceFormat as TryFrom<i64>>::Error>
impl TryFrom<i8> for SurfaceFormat
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_from(
value: i8
) -> Result<SurfaceFormat, <SurfaceFormat as TryFrom<i8>>::Error>
[src]
value: i8
) -> Result<SurfaceFormat, <SurfaceFormat as TryFrom<i8>>::Error>
impl TryFrom<u16> for SurfaceFormat
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_from(
value: u16
) -> Result<SurfaceFormat, <SurfaceFormat as TryFrom<u16>>::Error>
[src]
value: u16
) -> Result<SurfaceFormat, <SurfaceFormat as TryFrom<u16>>::Error>
impl TryFrom<u32> for SurfaceFormat
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_from(
value: u32
) -> Result<SurfaceFormat, <SurfaceFormat as TryFrom<u32>>::Error>
[src]
value: u32
) -> Result<SurfaceFormat, <SurfaceFormat as TryFrom<u32>>::Error>
impl TryFrom<u64> for SurfaceFormat
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_from(
value: u64
) -> Result<SurfaceFormat, <SurfaceFormat as TryFrom<u64>>::Error>
[src]
value: u64
) -> Result<SurfaceFormat, <SurfaceFormat as TryFrom<u64>>::Error>
impl TryFrom<u8> for SurfaceFormat
[src]
Auto Trait Implementations
impl RefUnwindSafe for SurfaceFormat
impl Send for SurfaceFormat
impl Sync for SurfaceFormat
impl Unpin for SurfaceFormat
impl UnwindSafe for SurfaceFormat
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,