pub struct ImageViewDescriptor<'a, LT: Lifetime> {
pub name: &'a str,
pub image: &'a Image<LT>,
pub view_type: ImageViewType,
pub format: Format,
pub components: ComponentMapping,
pub subresource_range: ImageSubresourceRange,
pub flags: Option<ImageViewCreateFlags>,
}
Expand description
Describes how an image view should be configured.
Fields§
§name: &'a str
Name used for debugging.
image: &'a Image<LT>
The handle of the image.
view_type: ImageViewType
The type of the image view.
format: Format
The format of the image view.
components: ComponentMapping
Component mapping.
subresource_range: ImageSubresourceRange
The subresource range.
flags: Option<ImageViewCreateFlags>
Additional flags.
Trait Implementations§
Source§impl<'a, LT: Clone + Lifetime> Clone for ImageViewDescriptor<'a, LT>
impl<'a, LT: Clone + Lifetime> Clone for ImageViewDescriptor<'a, LT>
Source§fn clone(&self) -> ImageViewDescriptor<'a, LT>
fn clone(&self) -> ImageViewDescriptor<'a, LT>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, LT> Freeze for ImageViewDescriptor<'a, LT>
impl<'a, LT> !RefUnwindSafe for ImageViewDescriptor<'a, LT>
impl<'a, LT> Send for ImageViewDescriptor<'a, LT>
impl<'a, LT> Sync for ImageViewDescriptor<'a, LT>
impl<'a, LT> Unpin for ImageViewDescriptor<'a, LT>
impl<'a, LT> !UnwindSafe for ImageViewDescriptor<'a, LT>
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