Struct ash::vk::definitions::ImageViewCreateInfo
source · #[repr(C)]pub struct ImageViewCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: ImageViewCreateFlags,
pub image: Image,
pub view_type: ImageViewType,
pub format: Format,
pub components: ComponentMapping,
pub subresource_range: ImageSubresourceRange,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *const c_void
§flags: ImageViewCreateFlags
§image: Image
§view_type: ImageViewType
§format: Format
§components: ComponentMapping
§subresource_range: ImageSubresourceRange
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> ImageViewCreateInfo<'a>
impl<'a> ImageViewCreateInfo<'a>
pub fn flags(self, flags: ImageViewCreateFlags) -> Self
pub fn image(self, image: Image) -> Self
pub fn view_type(self, view_type: ImageViewType) -> Self
pub fn format(self, format: Format) -> Self
pub fn components(self, components: ComponentMapping) -> Self
pub fn subresource_range(self, subresource_range: ImageSubresourceRange) -> Self
sourcepub fn push_next<T: ExtendsImageViewCreateInfo + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsImageViewCreateInfo + ?Sized>( self, next: &'a mut T, ) -> Self
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C
, and you call x.push_next(&mut D)
, then the
chain will look like A -> D -> B -> C
.
Trait Implementations§
source§impl<'a> Clone for ImageViewCreateInfo<'a>
impl<'a> Clone for ImageViewCreateInfo<'a>
source§fn clone(&self) -> ImageViewCreateInfo<'a>
fn clone(&self) -> ImageViewCreateInfo<'a>
Returns a copy 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 moresource§impl<'a> Debug for ImageViewCreateInfo<'a>
impl<'a> Debug for ImageViewCreateInfo<'a>
source§impl Default for ImageViewCreateInfo<'_>
impl Default for ImageViewCreateInfo<'_>
source§impl<'a> TaggedStructure for ImageViewCreateInfo<'a>
impl<'a> TaggedStructure for ImageViewCreateInfo<'a>
const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_VIEW_CREATE_INFO
impl<'a> Copy for ImageViewCreateInfo<'a>
impl Send for ImageViewCreateInfo<'_>
impl Sync for ImageViewCreateInfo<'_>
Auto Trait Implementations§
impl<'a> Freeze for ImageViewCreateInfo<'a>
impl<'a> RefUnwindSafe for ImageViewCreateInfo<'a>
impl<'a> Unpin for ImageViewCreateInfo<'a>
impl<'a> UnwindSafe for ImageViewCreateInfo<'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