Struct vulkano::descriptor_set::builder::DescriptorSetBuilder [−][src]
pub struct DescriptorSetBuilder { /* fields omitted */ }
Expand description
A builder for constructing a new descriptor set.
Implementations
Starts the process of building a descriptor set. Returns a builder.
Panic
- Panics if the set id is out of range.
Finalizes the building process and returns the generated output.
Call this function if the next element of the set is an array in order to set the value of each element.
This function can be called even if the descriptor isn’t an array, and it is valid to enter the “array”, add one element, then leave.
Leaves the array. Call this once you added all the elements of the array.
Skips the current descriptor if it is empty.
pub fn add_buffer(
&mut self,
buffer: Arc<dyn BufferAccess>
) -> Result<&mut Self, DescriptorSetError>
pub fn add_buffer(
&mut self,
buffer: Arc<dyn BufferAccess>
) -> Result<&mut Self, DescriptorSetError>
Binds a buffer as the next descriptor or array element.
pub fn add_buffer_view<B>(
&mut self,
view: Arc<BufferView<B>>
) -> Result<&mut Self, DescriptorSetError> where
B: BufferAccess + 'static,
pub fn add_buffer_view<B>(
&mut self,
view: Arc<BufferView<B>>
) -> Result<&mut Self, DescriptorSetError> where
B: BufferAccess + 'static,
Binds a buffer view as the next descriptor or array element.
pub fn add_image(
&mut self,
image_view: Arc<dyn ImageViewAbstract>
) -> Result<&mut Self, DescriptorSetError>
pub fn add_image(
&mut self,
image_view: Arc<dyn ImageViewAbstract>
) -> Result<&mut Self, DescriptorSetError>
Binds an image view as the next descriptor or array element.
pub fn add_sampled_image(
&mut self,
image_view: Arc<dyn ImageViewAbstract>,
sampler: Arc<Sampler>
) -> Result<&mut Self, DescriptorSetError>
pub fn add_sampled_image(
&mut self,
image_view: Arc<dyn ImageViewAbstract>,
sampler: Arc<Sampler>
) -> Result<&mut Self, DescriptorSetError>
Binds an image view with a sampler as the next descriptor or array element.
If the descriptor set layout contains immutable samplers for this descriptor, use
add_image
instead.
Binds a sampler as the next descriptor or array element.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for DescriptorSetBuilder
impl Send for DescriptorSetBuilder
impl Sync for DescriptorSetBuilder
impl Unpin for DescriptorSetBuilder
impl !UnwindSafe for DescriptorSetBuilder
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.