Struct rin::gl::texture::CompressedDataFormat [−][src]
pub struct CompressedDataFormat {
pub width: u32,
pub height: u32,
pub depth: u32,
pub format: u32,
pub level: u32,
pub xoffset: i32,
pub yoffset: i32,
pub zoffset: i32,
}Used to upload compressed data to a texture
format has to be the same as the internal_format used while allocating the texture
CompressedDataFormat implements Default so when uploading data to a texture where the data and the
texture ahve the same size, format and type and the data is going to be uploaded to level 0
a Default DataFormat can be used by calling Default::default() or CompressedDataFormat::default()
If some fields are not the same the rest can be defaulted by using ..Default::default() as in
use glin::texture::CompressedDataFormat; texture.load_data(&data, CompressedDataFormat{ width: 20, height: 20, xoffset: 20, yoffset: 20, ..Default::default() });
Fields
width: u32height: u32depth: u32format: u32level: u32xoffset: i32yoffset: i32zoffset: i32Trait Implementations
impl Clone for CompressedDataFormat[src]
impl Clone for CompressedDataFormat[src]pub fn clone(&self) -> CompressedDataFormat[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for CompressedDataFormat[src]
impl Debug for CompressedDataFormat[src]impl Default for CompressedDataFormat[src]
impl Default for CompressedDataFormat[src]pub fn default() -> CompressedDataFormat[src]
impl From<Format> for CompressedDataFormat[src]
impl From<Format> for CompressedDataFormat[src]pub fn from(texture_format: Format) -> CompressedDataFormat[src]
impl Hash for CompressedDataFormat[src]
impl Hash for CompressedDataFormat[src]impl PartialEq<CompressedDataFormat> for CompressedDataFormat[src]
impl PartialEq<CompressedDataFormat> for CompressedDataFormat[src]pub fn eq(&self, other: &CompressedDataFormat) -> bool[src]
pub fn ne(&self, other: &CompressedDataFormat) -> bool[src]
impl Copy for CompressedDataFormat[src]
impl Eq for CompressedDataFormat[src]
impl StructuralEq for CompressedDataFormat[src]
impl StructuralPartialEq for CompressedDataFormat[src]
Auto Trait Implementations
impl RefUnwindSafe for CompressedDataFormat
impl Send for CompressedDataFormat
impl Sync for CompressedDataFormat
impl Unpin for CompressedDataFormat
impl UnwindSafe for CompressedDataFormat
Blanket Implementations
impl<T> CallHasher for T where
T: Hash, [src]
impl<T> CallHasher for T where
T: Hash, [src]impl<T> DowncastSync for T where
T: Any + Send + Sync, [src]
impl<T> DowncastSync for T where
T: Any + Send + Sync, [src]impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]pub fn to_subset(&self) -> Option<SS>[src]
pub fn is_in_subset(&self) -> bool[src]
pub fn to_subset_unchecked(&self) -> SS[src]
pub fn from_subset(element: &SS) -> SP[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]pub fn to_subset(&self) -> Option<SS>[src]
pub fn is_in_subset(&self) -> bool[src]
pub fn to_subset_unchecked(&self) -> SS[src]
pub fn from_subset(element: &SS) -> SP[src]
impl<T> CollisionObjectHandle for T where
T: 'static + Copy + Hash + PartialEq<T> + Eq + Send + Sync, [src]
T: 'static + Copy + Hash + PartialEq<T> + Eq + Send + Sync,
impl<T> Slottable for T where
T: Copy, [src]
T: Copy,