Trait vulkano::descriptor_set::DescriptorSet [−][src]
pub unsafe trait DescriptorSet: DeviceOwned + Send + Sync {
fn inner(&self) -> &UnsafeDescriptorSet;
fn layout(&self) -> &Arc<DescriptorSetLayout>;
fn resources(&self) -> &DescriptorSetResources;
fn offsets<I>(
self: Arc<Self>,
dynamic_offsets: I
) -> DescriptorSetWithOffsets
where
Self: Sized + 'static,
I: IntoIterator<Item = u32>,
{ ... }
}
Expand description
Trait for objects that contain a collection of resources that will be accessible by shaders.
Objects of this type can be passed when submitting a draw command.
Required methods
fn inner(&self) -> &UnsafeDescriptorSet
fn inner(&self) -> &UnsafeDescriptorSet
Returns the inner UnsafeDescriptorSet
.
fn layout(&self) -> &Arc<DescriptorSetLayout>
fn layout(&self) -> &Arc<DescriptorSetLayout>
Returns the layout of this descriptor set.
fn resources(&self) -> &DescriptorSetResources
fn resources(&self) -> &DescriptorSetResources
Returns the resources bound to this descriptor set.
Provided methods
fn offsets<I>(self: Arc<Self>, dynamic_offsets: I) -> DescriptorSetWithOffsets where
Self: Sized + 'static,
I: IntoIterator<Item = u32>,
fn offsets<I>(self: Arc<Self>, dynamic_offsets: I) -> DescriptorSetWithOffsets where
Self: Sized + 'static,
I: IntoIterator<Item = u32>,
Creates a DescriptorSetWithOffsets
with the given dynamic offsets.