[−][src]Struct gpu::Texture3D
Methods
impl Texture3D[src]
pub fn get_dimension(&self) -> (usize, usize, usize)[src]
pub fn get_width(&self) -> usize[src]
pub fn get_height(&self) -> usize[src]
pub fn get_depth(&self) -> usize[src]
pub fn allocate(
dimension: (usize, usize, usize),
format: &TextureFormat
) -> Self[src]
dimension: (usize, usize, usize),
format: &TextureFormat
) -> Self
pub fn from_data<T>(
dimension: (usize, usize, usize),
format: &TextureFormat,
data: &[T],
data_format: &TextureFormat
) -> Self[src]
dimension: (usize, usize, usize),
format: &TextureFormat,
data: &[T],
data_format: &TextureFormat
) -> Self
pub fn reallocate(
&mut self,
dimension: (usize, usize, usize),
format: &TextureFormat
)[src]
&mut self,
dimension: (usize, usize, usize),
format: &TextureFormat
)
pub fn set_data<T>(
&mut self,
dimension: (usize, usize, usize),
format: &TextureFormat,
data: &[T],
data_format: &TextureFormat
)[src]
&mut self,
dimension: (usize, usize, usize),
format: &TextureFormat,
data: &[T],
data_format: &TextureFormat
)
pub fn get_data<T>(&self) -> Vec<T>[src]
Trait Implementations
impl Texture for Texture3D[src]
fn get_type(&self) -> u32[src]
fn get_format(&self) -> &TextureFormat[src]
impl Resource for Texture3D[src]
impl Drop for Texture3D[src]
Auto Trait Implementations
impl Sync for Texture3D
impl Send for Texture3D
impl Unpin for Texture3D
impl UnwindSafe for Texture3D
impl RefUnwindSafe for Texture3D
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,