Struct vulkano::descriptor::descriptor_set::UnsafeDescriptorSetLayout
[−]
[src]
pub struct UnsafeDescriptorSetLayout<P = Arc<Device>> where P: SafeDeref<Target=Device> { /* fields omitted */ }
Describes to the Vulkan implementation the layout of all descriptors within a descriptor set.
Despite its name, this type is technically not unsafe. However it serves the same purpose
in the API as other types whose names start with Unsafe
.
The P
template parameter contains a pointer to the Device
object.
Methods
impl<P> UnsafeDescriptorSetLayout<P> where P: SafeDeref<Target=Device>
[src]
fn raw<I>(device: P, descriptors: I) -> Result<UnsafeDescriptorSetLayout<P>, OomError> where I: IntoIterator<Item=DescriptorDesc>
See the docs of new().
fn new<I>(device: P, descriptors: I) -> Arc<UnsafeDescriptorSetLayout<P>> where I: IntoIterator<Item=DescriptorDesc>
Builds a new UnsafeDescriptorSetLayout
with the given descriptors.
Panic
- Panics if the device or host ran out of memory.
fn device(&self) -> &P
Returns the device used to create this layout.
Trait Implementations
impl<P> VulkanObject for UnsafeDescriptorSetLayout<P> where P: SafeDeref<Target=Device>
[src]
type Object = DescriptorSetLayout
The type of the object.
fn internal_object(&self) -> DescriptorSetLayout
Returns a reference to the object.