[][src]Struct mallumo_gls::texture::Texture3D

pub struct Texture3D {
    pub size: Texture3DSize,
    pub mipmap_levels: usize,
    pub internal_format: TextureInternalFormat,
    pub format: TextureFormat,
    pub data_type: TextureDataType,
    // some fields omitted
}

Fields

size: Texture3DSizemipmap_levels: usizeinternal_format: TextureInternalFormatformat: TextureFormatdata_type: TextureDataType

Methods

impl Texture3D[src]

pub fn new<T: TextureDataPrimitive, M: Into<MipmapLevel>>(
    size: Texture3DSize,
    internal_format: TextureInternalFormat,
    format: TextureFormat,
    data_type: TextureDataType,
    parameters: Texture3DParameters,
    levels: M,
    data: &[T]
) -> Result<Texture3D, Error>
[src]

pub fn new_empty<M: Into<MipmapLevel>>(
    size: Texture3DSize,
    internal_format: TextureInternalFormat,
    format: TextureFormat,
    data_type: TextureDataType,
    parameters: Texture3DParameters,
    levels: M
) -> Result<Texture3D, Error>
[src]

pub fn set_data<T: TextureDataPrimitive>(
    &mut self,
    data: &[T]
) -> Result<(), Error>
[src]

pub fn set_subdata<T: TextureDataPrimitive>(
    &mut self,
    size: Texture3DSize,
    offset: Texture3DSize,
    data: &[T]
) -> Result<(), Error>
[src]

pub fn set_data_mipmap<T: TextureDataPrimitive>(
    &mut self,
    level: usize,
    data: &[T]
) -> Result<(), Error>
[src]

pub fn set_subdata_mipmap<T: TextureDataPrimitive>(
    &mut self,
    level: usize,
    size: Texture3DSize,
    offset: Texture3DSize,
    data: &[T]
) -> Result<(), Error>
[src]

pub fn generate_mipmap(&mut self)[src]

pub fn clear(&mut self) -> Result<(), Error>[src]

pub fn clear_mipmap(&mut self, level: usize) -> Result<(), Error>[src]

Trait Implementations

impl Texture for Texture3D[src]

fn get_handle(&self) -> TextureHandle[src]

fn bind_texture(&self, unit: usize)[src]

fn bind_image(
    &self,
    unit: usize,
    level: usize,
    format: ImageInternalFormat
) -> Result<(), Error>
[src]

fn bind_image_read(
    &self,
    unit: usize,
    level: usize,
    format: ImageInternalFormat
) -> Result<(), Error>
[src]

fn bind_image_write(
    &self,
    unit: usize,
    level: usize,
    format: ImageInternalFormat
) -> Result<(), Error>
[src]

impl Drop for Texture3D[src]

impl Debug for Texture3D[src]

Auto Trait Implementations

impl Send for Texture3D

impl Sync for Texture3D

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.