pub struct ClearedTextureDesc<'a> {
pub label: &'a str,
pub format: Format,
pub width: u32,
pub height: u32,
pub layers: u32,
pub view_type: ImageViewType,
pub patches: &'a [TexturePatch<'a>],
}Expand description
The image upload_cleared_texture creates, and what goes on it.
Fields§
§label: &'a strNames the image and the view, and is the stem of the buffers’ and the
encoder’s names, as in upload_texture.
format: FormatAn uncompressed format with a single colour plane.
width: u32Width of every layer, in texels.
height: u32Height of every layer, in texels.
layers: u32Array layers in the image; at least one.
view_type: ImageViewTypeD2 or D2Array: the shader’s declaration decides, not layers.
patches: &'a [TexturePatch<'a>]Rectangles written over the zeroes, in order.
Trait Implementations§
Source§impl<'a> Clone for ClearedTextureDesc<'a>
impl<'a> Clone for ClearedTextureDesc<'a>
Source§fn clone(&self) -> ClearedTextureDesc<'a>
fn clone(&self) -> ClearedTextureDesc<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ClearedTextureDesc<'a>
Auto Trait Implementations§
impl<'a> Freeze for ClearedTextureDesc<'a>
impl<'a> RefUnwindSafe for ClearedTextureDesc<'a>
impl<'a> Send for ClearedTextureDesc<'a>
impl<'a> Sync for ClearedTextureDesc<'a>
impl<'a> Unpin for ClearedTextureDesc<'a>
impl<'a> UnsafeUnpin for ClearedTextureDesc<'a>
impl<'a> UnwindSafe for ClearedTextureDesc<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more