Struct vulkano::descriptor_set::sys::DescriptorWrite [−][src]
pub struct DescriptorWrite { /* fields omitted */ }
Expand description
Represents a single write entry to a descriptor set.
Use the various constructors to build a DescriptorWrite
. While it is safe to build a
DescriptorWrite
, it is unsafe to actually use it to write to a descriptor set.
Implementations
pub unsafe fn buffer(
binding_num: u32,
first_array_element: u32,
elements: impl IntoIterator<Item = Arc<dyn BufferAccess>>
) -> Self
pub unsafe fn buffer_view(
binding_num: u32,
first_array_element: u32,
elements: impl IntoIterator<Item = Arc<dyn BufferViewAbstract>>
) -> Self
pub unsafe fn image_view(
binding_num: u32,
first_array_element: u32,
elements: impl IntoIterator<Item = Arc<dyn ImageViewAbstract>>
) -> Self
pub unsafe fn image_view_sampler(
binding_num: u32,
first_array_element: u32,
elements: impl IntoIterator<Item = (Arc<dyn ImageViewAbstract>, Arc<Sampler>)>
) -> Self
pub unsafe fn sampler(
binding_num: u32,
first_array_element: u32,
elements: impl IntoIterator<Item = Arc<Sampler>>
) -> Self
Returns the binding number that is updated by this descriptor write.
Returns the first array element in the binding that is updated by this descriptor write.
Returns a reference to the elements held by this descriptor write.
Auto Trait Implementations
impl !RefUnwindSafe for DescriptorWrite
impl Send for DescriptorWrite
impl Sync for DescriptorWrite
impl Unpin for DescriptorWrite
impl !UnwindSafe for DescriptorWrite
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.