Struct glin::texture::LoadDataFormat [−][src]
Use to allocate a new texture
Fields
texture_format: Format
format: GLenum
ty: GLenum
Implementations
impl LoadDataFormat
[src]
impl LoadDataFormat
[src]pub fn new(internal: GLenum, width: u32, height: u32) -> Result<LoadDataFormat>
[src]
pub fn new_3d(
internal: GLenum,
width: u32,
height: u32,
depth: u32
) -> Result<LoadDataFormat>
[src]
internal: GLenum,
width: u32,
height: u32,
depth: u32
) -> Result<LoadDataFormat>
pub fn new_1d(internal: GLenum, width: u32) -> Result<LoadDataFormat>
[src]
pub fn new_array(
internal: GLenum,
width: u32,
height: u32,
layers: u32
) -> Result<LoadDataFormat>
[src]
internal: GLenum,
width: u32,
height: u32,
layers: u32
) -> Result<LoadDataFormat>
pub fn texture_format(&self) -> &Format
[src]
pub fn data_format(&self) -> DataFormat
[src]
Trait Implementations
impl Clone for LoadDataFormat
[src]
impl Clone for LoadDataFormat
[src]fn clone(&self) -> LoadDataFormat
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Hash for LoadDataFormat
[src]
impl Hash for LoadDataFormat
[src]impl PartialEq<LoadDataFormat> for LoadDataFormat
[src]
impl PartialEq<LoadDataFormat> for LoadDataFormat
[src]fn eq(&self, other: &LoadDataFormat) -> bool
[src]
fn ne(&self, other: &LoadDataFormat) -> bool
[src]
impl TryFrom<Format> for LoadDataFormat
[src]
impl TryFrom<Format> for LoadDataFormat
[src]