[][src]Struct mallumo_gls::texture::Texture1D

pub struct Texture1D { /* fields omitted */ }

Methods

impl Texture1D[src]

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

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

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

pub fn set_subdata<T: TextureDataPrimitive>(
    &mut self,
    size: Texture1DSize,
    offset: Texture1DSize,
    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: Texture1DSize,
    offset: Texture1DSize,
    data: &[T]
) -> Result<(), Error>
[src]

pub fn generate_mipmap(&mut self)[src]

Trait Implementations

impl Texture for Texture1D[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 Texture1D[src]

impl Debug for Texture1D[src]

Auto Trait Implementations

impl Send for Texture1D

impl Sync for Texture1D

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.