[−][src]Struct gli_rs::Texture3D
3d texture
Methods
impl Texture3D
[src]
pub fn new_empty() -> Texture3D
[src]
Create an empty texture 3D.
pub fn new(format: Format, extent: Extent3d, levels: usize) -> Texture3D
[src]
Create a texture3d and allocate a new storage_linear.
pub fn new_with_mipmap_chain(format: Format, extent: Extent3d) -> Texture3D
[src]
Create a texture3d and allocate a new storage_linear with a complete mipmap chain.
pub fn share_from(texture: &impl GliTexture) -> Texture3D
[src]
Create a texture3d view with an existing storage_linear.
pub fn share_from_detail(
texture: &impl GliTexture,
format: Format,
base_layer: usize,
max_layer: usize,
base_face: usize,
max_face: usize,
base_level: usize,
max_level: usize
) -> Texture3D
[src]
texture: &impl GliTexture,
format: Format,
base_layer: usize,
max_layer: usize,
base_face: usize,
max_face: usize,
base_level: usize,
max_level: usize
) -> Texture3D
Create a texture3d view with an existing storage_linear.
pub fn share_from_subset(
texture: &Texture3D,
base_level: usize,
max_level: usize
) -> Texture3D
[src]
texture: &Texture3D,
base_level: usize,
max_level: usize
) -> Texture3D
Create a texture3d view, reference a subset of an existing texture3d instance.
pub fn get_level(&self, level: usize) -> GliImage
[src]
Create a view of the image identified by Level in the mipmap chain of the texture.
This method is equivalent to []
operator in C++ version.
Trait Implementations
impl Eq for Texture3D
[src]
impl GliTexture for Texture3D
[src]
const TARGET_TYPE: Target
[src]
type ExtentType = Extent3d
fn extent(&self, level: usize) -> Self::ExtentType
[src]
fn set_swizzles(&mut self, swizzles: Swizzles)
[src]
fn base_face(&self) -> usize
[src]
fn base_layer(&self) -> usize
[src]
fn base_level(&self) -> usize
[src]
fn clear(&mut self)
[src]
fn copy(
&mut self,
src_texture: &Self,
src_layer: usize,
src_face: usize,
src_level: usize,
dst_layer: usize,
dst_face: usize,
dst_level: usize
)
[src]
&mut self,
src_texture: &Self,
src_layer: usize,
src_face: usize,
src_level: usize,
dst_layer: usize,
dst_face: usize,
dst_level: usize
)
fn copy_subset(
&mut self,
src_texture: &Self,
src_layer: usize,
src_face: usize,
src_level: usize,
src_offset: Extent3d,
dst_layer: usize,
dst_face: usize,
dst_level: usize,
dst_offset: Extent3d,
extent: Extent3d
)
[src]
&mut self,
src_texture: &Self,
src_layer: usize,
src_face: usize,
src_level: usize,
src_offset: Extent3d,
dst_layer: usize,
dst_face: usize,
dst_level: usize,
dst_offset: Extent3d,
extent: Extent3d
)
fn data(&self) -> *const c_void
[src]
unsafe fn data_mut(&mut self) -> *mut c_void
[src]
fn empty(&self) -> bool
[src]
fn faces(&self) -> usize
[src]
fn format(&self) -> Format
[src]
fn layers(&self) -> usize
[src]
fn levels(&self) -> usize
[src]
fn max_face(&self) -> usize
[src]
fn max_layer(&self) -> usize
[src]
fn max_level(&self) -> usize
[src]
fn size(&self) -> usize
[src]
fn size_at_level(&self, level: usize) -> usize
[src]
fn target(&self) -> Target
[src]
impl PartialEq<Texture3D> for Texture3D
[src]
Auto Trait Implementations
impl RefUnwindSafe for Texture3D
impl Send for Texture3D
impl Sync for Texture3D
impl Unpin for Texture3D
impl UnwindSafe for Texture3D
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,