Struct vulkano::image::ImageDescriptorLayouts
source · [−]pub struct ImageDescriptorLayouts {
pub storage_image: ImageLayout,
pub combined_image_sampler: ImageLayout,
pub sampled_image: ImageLayout,
pub input_attachment: ImageLayout,
}
Expand description
The set of layouts to use for an image when used in descriptor of various kinds.
Fields
storage_image: ImageLayout
The image layout to use in a descriptor as a storage image.
combined_image_sampler: ImageLayout
The image layout to use in a descriptor as a combined image sampler.
sampled_image: ImageLayout
The image layout to use in a descriptor as a sampled image.
input_attachment: ImageLayout
The image layout to use in a descriptor as an input attachment.
Implementations
sourceimpl ImageDescriptorLayouts
impl ImageDescriptorLayouts
sourcepub fn layout_for(&self, descriptor_type: DescriptorType) -> ImageLayout
pub fn layout_for(&self, descriptor_type: DescriptorType) -> ImageLayout
Returns the layout for the given descriptor type. Panics if descriptor_type
is not an
image descriptor type.
Trait Implementations
sourceimpl Clone for ImageDescriptorLayouts
impl Clone for ImageDescriptorLayouts
sourcefn clone(&self) -> ImageDescriptorLayouts
fn clone(&self) -> ImageDescriptorLayouts
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ImageDescriptorLayouts
impl Debug for ImageDescriptorLayouts
sourceimpl PartialEq<ImageDescriptorLayouts> for ImageDescriptorLayouts
impl PartialEq<ImageDescriptorLayouts> for ImageDescriptorLayouts
sourcefn eq(&self, other: &ImageDescriptorLayouts) -> bool
fn eq(&self, other: &ImageDescriptorLayouts) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ImageDescriptorLayouts) -> bool
fn ne(&self, other: &ImageDescriptorLayouts) -> bool
This method tests for !=
.
impl Copy for ImageDescriptorLayouts
impl Eq for ImageDescriptorLayouts
impl StructuralEq for ImageDescriptorLayouts
impl StructuralPartialEq for ImageDescriptorLayouts
Auto Trait Implementations
impl RefUnwindSafe for ImageDescriptorLayouts
impl Send for ImageDescriptorLayouts
impl Sync for ImageDescriptorLayouts
impl Unpin for ImageDescriptorLayouts
impl UnwindSafe for ImageDescriptorLayouts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more