Struct vulkano::descriptor::descriptor_set::UnsafeDescriptorSet
[−]
[src]
pub struct UnsafeDescriptorSet { /* fields omitted */ }
Low-level descriptor set.
Methods
impl UnsafeDescriptorSet
[src]
unsafe fn uninitialized_raw(pool: &Arc<DescriptorPool>, layout: &Arc<UnsafeDescriptorSetLayout>) -> Result<UnsafeDescriptorSet, OomError>
See the docs of uninitialized().
unsafe fn uninitialized(pool: &Arc<DescriptorPool>, layout: &Arc<UnsafeDescriptorSetLayout>) -> UnsafeDescriptorSet
Builds a new descriptor set.
Panic
- Panics if the pool and the layout were not created from the same
Device
. - Panics if the device or host ran out of memory.
unsafe fn write(&mut self, write: Vec<DescriptorWrite>)
Modifies a descriptor set without checking that the writes are correct.
Safety
- Doesn't verify that the things you write in the descriptor set match its layout.
fn layout(&self) -> &Arc<UnsafeDescriptorSetLayout>
Returns the layout used to create this descriptor set.
Trait Implementations
impl VulkanObject for UnsafeDescriptorSet
[src]
type Object = DescriptorSet
The type of the object.
fn internal_object(&self) -> DescriptorSet
Returns a reference to the object.