Enum vulkano::descriptor_set::DescriptorBindingResources [−][src]
pub enum DescriptorBindingResources {
None,
Buffer(SmallVec<[Option<Arc<dyn BufferAccess>>; 1]>),
BufferView(SmallVec<[Option<Arc<dyn BufferViewAbstract>>; 1]>),
ImageView(SmallVec<[Option<Arc<dyn ImageViewAbstract>>; 1]>),
ImageViewSampler(SmallVec<[Option<(Arc<dyn ImageViewAbstract>, Arc<Sampler>)>; 1]>),
Sampler(SmallVec<[Option<Arc<Sampler>>; 1]>),
}
Expand description
The resources that are bound to a single descriptor set binding.
Variants
None
Buffer(SmallVec<[Option<Arc<dyn BufferAccess>>; 1]>)
BufferView(SmallVec<[Option<Arc<dyn BufferViewAbstract>>; 1]>)
ImageView(SmallVec<[Option<Arc<dyn ImageViewAbstract>>; 1]>)
ImageViewSampler(SmallVec<[Option<(Arc<dyn ImageViewAbstract>, Arc<Sampler>)>; 1]>)
Sampler(SmallVec<[Option<Arc<Sampler>>; 1]>)
Implementations
Applies a descriptor write to the resources.
Panics
- Panics if the resource types do not match.
- Panics if the write goes out of bounds.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for DescriptorBindingResources
impl Send for DescriptorBindingResources
impl Sync for DescriptorBindingResources
impl Unpin for DescriptorBindingResources
impl !UnwindSafe for DescriptorBindingResources
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.