Enum vulkano::descriptor::descriptor::DescriptorDescTy
source · pub enum DescriptorDescTy {
Sampler,
CombinedImageSampler(DescriptorImageDesc),
Image(DescriptorImageDesc),
TexelBuffer {
storage: bool,
format: Option<Format>,
},
InputAttachment {
multisampled: bool,
array_layers: DescriptorImageDescArray,
},
Buffer(DescriptorBufferDesc),
}
Expand description
Describes the content and layout of each array element of a descriptor.
Variants
Sampler
CombinedImageSampler(DescriptorImageDesc)
Image(DescriptorImageDesc)
TexelBuffer
Fields
storage: bool
If true
, this describes a storage texel buffer.
InputAttachment
Fields
multisampled: bool
If true
, the input attachment is multisampled. Only multisampled images can be
attached to this descriptor. If false
, only single-sampled images can be attached.
array_layers: DescriptorImageDescArray
Buffer(DescriptorBufferDesc)
Implementations
sourceimpl DescriptorDescTy
impl DescriptorDescTy
sourcepub fn ty(&self) -> Option<DescriptorType>
pub fn ty(&self) -> Option<DescriptorType>
Returns the type of descriptor.
Returns None
if there’s not enough info to determine the type.
sourcepub fn is_superset_of(
&self,
other: &DescriptorDescTy
) -> Result<(), DescriptorDescSupersetError>
pub fn is_superset_of(
&self,
other: &DescriptorDescTy
) -> Result<(), DescriptorDescSupersetError>
Checks whether we are a superset of another descriptor type.
Trait Implementations
sourceimpl Clone for DescriptorDescTy
impl Clone for DescriptorDescTy
sourcefn clone(&self) -> DescriptorDescTy
fn clone(&self) -> DescriptorDescTy
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 moresourceimpl Debug for DescriptorDescTy
impl Debug for DescriptorDescTy
sourceimpl PartialEq<DescriptorDescTy> for DescriptorDescTy
impl PartialEq<DescriptorDescTy> for DescriptorDescTy
sourcefn eq(&self, other: &DescriptorDescTy) -> bool
fn eq(&self, other: &DescriptorDescTy) -> bool
impl Eq for DescriptorDescTy
impl StructuralEq for DescriptorDescTy
impl StructuralPartialEq for DescriptorDescTy
Auto Trait Implementations
impl RefUnwindSafe for DescriptorDescTy
impl Send for DescriptorDescTy
impl Sync for DescriptorDescTy
impl Unpin for DescriptorDescTy
impl UnwindSafe for DescriptorDescTy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.