[−][src]Enum glium::texture::InternalFormat
Internal format of a texture.
The actual format of a texture is not necessarily one of the predefined ones, so we have to use a very generic description.
Variants
The format has one component.
Fields of OneComponent
ty1: InternalFormatType
Type of the first component of the format.
bits1: usize
Number of bits of the first component.
The format has two components.
Fields of TwoComponents
ty1: InternalFormatType
Type of the first component of the format.
bits1: usize
Number of bits of the first component.
ty2: InternalFormatType
Type of the second component.
bits2: usize
Number of bits of the second component.
The format has three components.
Fields of ThreeComponents
ty1: InternalFormatType
Type of the first component of the format.
bits1: usize
Number of bits of the first component.
ty2: InternalFormatType
Type of the second component.
bits2: usize
Number of bits of the second component.
ty3: InternalFormatType
Type of the third component.
bits3: usize
Number of bits of the third component.
The format has four components.
Fields of FourComponents
ty1: InternalFormatType
Type of the first component of the format.
bits1: usize
Number of bits of the first component.
ty2: InternalFormatType
Type of the second component.
bits2: usize
Number of bits of the second component.
ty3: InternalFormatType
Type of the third component.
bits3: usize
Number of bits of the third component.
ty4: InternalFormatType
Type of the fourth component.
bits4: usize
Number of bits of the fourth component.
Implementations
impl InternalFormat
[src]
pub fn get_total_bits(&self) -> usize
[src]
Returns the total number of bits of this format.
Trait Implementations
impl Clone for InternalFormat
[src]
fn clone(&self) -> InternalFormat
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for InternalFormat
[src]
impl Debug for InternalFormat
[src]
impl Eq for InternalFormat
[src]
impl PartialEq<InternalFormat> for InternalFormat
[src]
fn eq(&self, other: &InternalFormat) -> bool
[src]
fn ne(&self, other: &InternalFormat) -> bool
[src]
impl StructuralEq for InternalFormat
[src]
impl StructuralPartialEq for InternalFormat
[src]
Auto Trait Implementations
impl RefUnwindSafe for InternalFormat
impl Send for InternalFormat
impl Sync for InternalFormat
impl Unpin for InternalFormat
impl UnwindSafe for InternalFormat
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T where
T: Copy,
[src]
T: Copy,
type Owned = T
A type that holds a sized version of the content.
fn read<F, E>(usize, F) -> Result<T, E> where
F: FnOnce(&mut T) -> Result<(), E>,
[src]
F: FnOnce(&mut T) -> Result<(), E>,
fn get_elements_size() -> usize
[src]
fn to_void_ptr(&Self) -> *const ()
[src]
fn ref_from_ptr(*mut (), usize) -> Option<*mut T>
[src]
fn is_size_suitable(usize) -> bool
[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.
fn to_owned(&self) -> T
[src]
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.
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>,