[−][src]Struct mallumo_gls::texture::Texture3D
Fields
size: Texture3DSize
mipmap_levels: usize
internal_format: TextureInternalFormat
format: TextureFormat
data_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]
size: Texture3DSize,
internal_format: TextureInternalFormat,
format: TextureFormat,
data_type: TextureDataType,
parameters: Texture3DParameters,
levels: M,
data: &[T]
) -> Result<Texture3D, Error>
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]
size: Texture3DSize,
internal_format: TextureInternalFormat,
format: TextureFormat,
data_type: TextureDataType,
parameters: Texture3DParameters,
levels: M
) -> Result<Texture3D, Error>
pub fn set_data<T: TextureDataPrimitive>(
&mut self,
data: &[T]
) -> Result<(), Error>
[src]
&mut self,
data: &[T]
) -> Result<(), Error>
pub fn set_subdata<T: TextureDataPrimitive>(
&mut self,
size: Texture3DSize,
offset: Texture3DSize,
data: &[T]
) -> Result<(), Error>
[src]
&mut self,
size: Texture3DSize,
offset: Texture3DSize,
data: &[T]
) -> Result<(), Error>
pub fn set_data_mipmap<T: TextureDataPrimitive>(
&mut self,
level: usize,
data: &[T]
) -> Result<(), Error>
[src]
&mut self,
level: usize,
data: &[T]
) -> Result<(), Error>
pub fn set_subdata_mipmap<T: TextureDataPrimitive>(
&mut self,
level: usize,
size: Texture3DSize,
offset: Texture3DSize,
data: &[T]
) -> Result<(), Error>
[src]
&mut self,
level: usize,
size: Texture3DSize,
offset: Texture3DSize,
data: &[T]
) -> Result<(), Error>
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_id(&self) -> TextureId
[src]
fn get_target(&self) -> TextureTarget
[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]
&self,
unit: usize,
level: usize,
format: ImageInternalFormat
) -> Result<(), Error>
fn bind_image_read(
&self,
unit: usize,
level: usize,
format: ImageInternalFormat
) -> Result<(), Error>
[src]
&self,
unit: usize,
level: usize,
format: ImageInternalFormat
) -> Result<(), Error>
fn bind_image_write(
&self,
unit: usize,
level: usize,
format: ImageInternalFormat
) -> Result<(), Error>
[src]
&self,
unit: usize,
level: usize,
format: ImageInternalFormat
) -> Result<(), Error>
impl Drop for Texture3D
[src]
impl Debug for Texture3D
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,