Struct vulkano::descriptor_set::layout::DescriptorSetDesc[][src]

pub struct DescriptorSetDesc { /* fields omitted */ }

Implementations

Builds a new DescriptorSetDesc with the given descriptors.

The descriptors must be passed in the order of the bindings. In order words, descriptor at bind point 0 first, then descriptor at bind point 1, and so on. If a binding must remain empty, you can make the iterator yield None for an element.

Builds a list of DescriptorSetDesc from an iterator of DescriptorRequirement originating from a shader.

Builds a new empty DescriptorSetDesc.

Returns the descriptors in the set.

Returns the descriptor with the given binding number, or None if the binding is empty.

Returns whether the description is set to be a push descriptor.

Changes a buffer descriptor’s type to dynamic.

Panics
  • Panics if the description is set to be a push descriptor.
  • Panics if binding_num does not refer to a StorageBuffer or UniformBuffer descriptor.

Sets the immutable samplers for a sampler or combined image sampler descriptor.

Panics
  • Panics if the binding number does not refer to a sampler or combined image sampler descriptor.

Sets the descriptor set layout to use push descriptors instead of descriptor sets.

If set to enabled, the khr_push_descriptor extension must be enabled on the device.

Panics
  • If enabled, panics if the description contains a dynamic buffer descriptor.

Sets the descriptor count for a descriptor that has a variable count.

Returns whether self is compatible with other.

“Compatible” in this sense is defined by the Vulkan specification under the section “Pipeline layout compatibility”: the two must be identically defined to the Vulkan API, meaning that all descriptors are compatible and flags are identical.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

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.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.