[−][src]Struct gli_rs::Texture1DArray
1d array texture
Methods
impl Texture1DArray
[src]
pub fn new_empty() -> Texture1DArray
[src]
Create an empty texture 1D array.
pub fn new(
format: Format,
extent: Extent1d,
layers: usize,
levels: usize
) -> Texture1DArray
[src]
format: Format,
extent: Extent1d,
layers: usize,
levels: usize
) -> Texture1DArray
Create a texture1d_array and allocate a new storage_linear.
pub fn new_with_mipmap_chain(
format: Format,
extent: Extent1d,
layers: usize
) -> Texture1DArray
[src]
format: Format,
extent: Extent1d,
layers: usize
) -> Texture1DArray
Create a texture1d_array and allocate a new storage_linear with a complete mipmap chain.
pub fn share_from(texture: &impl GliTexture) -> Texture1DArray
[src]
Create a texture1d_array 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
) -> Texture1DArray
[src]
texture: &impl GliTexture,
format: Format,
base_layer: usize,
max_layer: usize,
base_face: usize,
max_face: usize,
base_level: usize,
max_level: usize
) -> Texture1DArray
Create a texture1d_array view with an existing storage_linear.
pub fn share_from_subset(
texture: &Texture1DArray,
base_layer: usize,
max_layer: usize,
base_level: usize,
max_level: usize
) -> Texture1DArray
[src]
texture: &Texture1DArray,
base_layer: usize,
max_layer: usize,
base_level: usize,
max_level: usize
) -> Texture1DArray
Create a texture1d_array view, reference a subset of an existing texture1d_array instance.
pub fn get_layer(&self, layer: usize) -> Texture1D
[src]
Create a view of the texture identified by Layer in the texture array.
This method is equivalent to []
operator in C++ version.
Trait Implementations
impl Eq for Texture1DArray
[src]
impl GliTexture for Texture1DArray
[src]
const TARGET_TYPE: Target
[src]
type ExtentType = Extent1d
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<Texture1DArray> for Texture1DArray
[src]
fn eq(&self, other: &Texture1DArray) -> bool
[src]
Compare two textures. Two textures are the same when the data, the format and the targets are the same.
fn ne(&self, other: &Texture1DArray) -> bool
[src]
Compare two textures. Two textures are the same when the data, the format and the targets are the same.
Auto Trait Implementations
impl RefUnwindSafe for Texture1DArray
impl Send for Texture1DArray
impl Sync for Texture1DArray
impl Unpin for Texture1DArray
impl UnwindSafe for Texture1DArray
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>,