pub struct TextureCubeArray { /* private fields */ }
Expand description
Cube map array texture
Implementations§
Source§impl TextureCubeArray
impl TextureCubeArray
Sourcepub fn new_empty() -> TextureCubeArray
pub fn new_empty() -> TextureCubeArray
Create an empty texture cube array.
Sourcepub fn new(
format: Format,
extent: Extent2d,
layers: usize,
levels: usize,
) -> TextureCubeArray
pub fn new( format: Format, extent: Extent2d, layers: usize, levels: usize, ) -> TextureCubeArray
Create a texture_cube_array and allocate a new storage_linear.
Sourcepub fn new_with_mipmap_chain(
format: Format,
extent: Extent2d,
layers: usize,
) -> TextureCubeArray
pub fn new_with_mipmap_chain( format: Format, extent: Extent2d, layers: usize, ) -> TextureCubeArray
Create a texture_cube_array and allocate a new storage_linear with a complete mipmap chain.
Sourcepub fn new_from(texture: &impl GliTexture) -> TextureCubeArray
pub fn new_from(texture: &impl GliTexture) -> TextureCubeArray
Create a texture_cube_array view with an existing storage_linear.
Sourcepub fn new_detail(
texture: &impl GliTexture,
format: Format,
base_layer: usize,
max_layer: usize,
base_face: usize,
max_face: usize,
base_level: usize,
max_level: usize,
) -> TextureCubeArray
pub fn new_detail( texture: &impl GliTexture, format: Format, base_layer: usize, max_layer: usize, base_face: usize, max_face: usize, base_level: usize, max_level: usize, ) -> TextureCubeArray
Create a texture_cube_array view with an existing storage_linear.
Sourcepub fn new_from_subset(
texture: &TextureCubeArray,
base_layer: usize,
max_layer: usize,
base_face: usize,
max_face: usize,
base_level: usize,
max_level: usize,
) -> TextureCubeArray
pub fn new_from_subset( texture: &TextureCubeArray, base_layer: usize, max_layer: usize, base_face: usize, max_face: usize, base_level: usize, max_level: usize, ) -> TextureCubeArray
Create a texture_cube_array view, reference a subset of an existing texture_cube_array instance.
Sourcepub fn get_layer(&self, layer: usize) -> TextureCube
pub fn get_layer(&self, layer: usize) -> TextureCube
Create a view of the texture identified by Layer in the texture array.
This method is equivalent to []
operator in C++ version.
Trait Implementations§
Source§impl GliTexture for TextureCubeArray
impl GliTexture for TextureCubeArray
const TARGET_TYPE: Target = Target::TARGET_CUBE_ARRAY
type ExtentType = Extent2d
Source§fn extent(&self, level: usize) -> Self::ExtentType
fn extent(&self, level: usize) -> Self::ExtentType
fn set_swizzles(&mut self, swizzles: Swizzles)
Source§fn base_face(&self) -> usize
fn base_face(&self) -> usize
Source§fn base_layer(&self) -> usize
fn base_layer(&self) -> usize
Source§fn base_level(&self) -> usize
fn base_level(&self) -> usize
Source§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,
)
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, )
Source§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,
)
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, )
Source§fn data(&self) -> *const c_void
fn data(&self) -> *const c_void
unsafe fn data_mut(&mut self) -> *mut c_void
Source§fn empty(&self) -> bool
fn empty(&self) -> bool
Source§fn max_face(&self) -> usize
fn max_face(&self) -> usize
Source§fn max_layer(&self) -> usize
fn max_layer(&self) -> usize
Source§fn max_level(&self) -> usize
fn max_level(&self) -> usize
Source§fn size_at_level(&self, level: usize) -> usize
fn size_at_level(&self, level: usize) -> usize
Source§impl PartialEq for TextureCubeArray
impl PartialEq for TextureCubeArray
Source§fn eq(&self, other: &TextureCubeArray) -> bool
fn eq(&self, other: &TextureCubeArray) -> bool
Compare two textures. Two textures are the same when the data, the format and the targets are the same.
Source§fn ne(&self, other: &TextureCubeArray) -> bool
fn ne(&self, other: &TextureCubeArray) -> bool
Compare two textures. Two textures are the same when the data, the format and the targets are the same.