pub struct UploadedTexture {
pub image: Handle<Image>,
pub view: Handle<ImageView>,
}Expand description
A texture that has been uploaded: the image, and the view callers bind.
The two travel together because they die together, and every caller that
kept them as two loose handles has had to remember that on both its failure
path and its teardown path. UploadedTexture::destroy is the one place
the order lives.
Fields§
§image: Handle<Image>The device-local image the copy filled.
view: Handle<ImageView>A full-subresource colour view of UploadedTexture::image: D2 from
upload_texture, D2Array from upload_texture_layers and
upload_texture_mip_layers.
Implementations§
Trait Implementations§
Source§impl Clone for UploadedTexture
impl Clone for UploadedTexture
Source§fn clone(&self) -> UploadedTexture
fn clone(&self) -> UploadedTexture
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 Copy for UploadedTexture
Source§impl Debug for UploadedTexture
impl Debug for UploadedTexture
impl Eq for UploadedTexture
Source§impl PartialEq for UploadedTexture
impl PartialEq for UploadedTexture
impl StructuralPartialEq for UploadedTexture
Auto Trait Implementations§
impl Forget for UploadedTexture
impl Freeze for UploadedTexture
impl Move for UploadedTexture
impl RefUnwindSafe for UploadedTexture
impl Send for UploadedTexture
impl Sync for UploadedTexture
impl Unpin for UploadedTexture
impl UnsafeUnpin for UploadedTexture
impl UnwindSafe for UploadedTexture
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