Struct vulkano::descriptor_set::DescriptorImageViewInfo
source · pub struct DescriptorImageViewInfo {
pub image_view: Arc<ImageView>,
pub image_layout: ImageLayout,
}
Expand description
Parameters to write an image view reference to a descriptor.
Fields§
§image_view: Arc<ImageView>
The image view to write to the descriptor.
image_layout: ImageLayout
The layout that the image is expected to be in when it’s accessed in the shader.
Only certain layouts are allowed, depending on the type of descriptor.
For SampledImage
, CombinedImageSampler
and InputAttachment
:
General
ShaderReadOnlyOptimal
DepthStencilReadOnlyOptimal
DepthReadOnlyStencilAttachmentOptimal
DepthAttachmentStencilReadOnlyOptimal
For StorageImage
:
General
If the Undefined
layout is provided, then it will be automatically replaced with
General
for StorageImage
descriptors, and with ShaderReadOnlyOptimal
for any other
descriptor type.
Trait Implementations§
source§impl Clone for DescriptorImageViewInfo
impl Clone for DescriptorImageViewInfo
source§fn clone(&self) -> DescriptorImageViewInfo
fn clone(&self) -> DescriptorImageViewInfo
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for DescriptorImageViewInfo
impl Send for DescriptorImageViewInfo
impl Sync for DescriptorImageViewInfo
impl Unpin for DescriptorImageViewInfo
impl !UnwindSafe for DescriptorImageViewInfo
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