Struct vulkano::descriptor::pipeline_layout::EmptyPipelineDesc
source · pub struct EmptyPipelineDesc;
Expand description
Description of an empty pipeline layout.
Example
use vulkano::descriptor::pipeline_layout::EmptyPipelineDesc;
use vulkano::descriptor::pipeline_layout::PipelineLayoutDesc;
let pipeline_layout = EmptyPipelineDesc.build(device.clone()).unwrap();
Trait Implementations
sourceimpl Clone for EmptyPipelineDesc
impl Clone for EmptyPipelineDesc
sourcefn clone(&self) -> EmptyPipelineDesc
fn clone(&self) -> EmptyPipelineDesc
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for EmptyPipelineDesc
impl Debug for EmptyPipelineDesc
sourceimpl PipelineLayoutDesc for EmptyPipelineDesc
impl PipelineLayoutDesc for EmptyPipelineDesc
sourcefn num_sets(&self) -> usize
fn num_sets(&self) -> usize
Returns the number of sets in the layout. Includes possibly empty sets. Read more
sourcefn num_bindings_in_set(&self, _: usize) -> Option<usize>
fn num_bindings_in_set(&self, _: usize) -> Option<usize>
Returns the number of descriptors in the set. Includes possibly empty descriptors. Read more
sourcefn descriptor(&self, _: usize, _: usize) -> Option<DescriptorDesc>
fn descriptor(&self, _: usize, _: usize) -> Option<DescriptorDesc>
Returns the descriptor for the given binding of the given set. Read more
sourcefn num_push_constants_ranges(&self) -> usize
fn num_push_constants_ranges(&self) -> usize
Returns the number of push constant ranges of the layout.
sourcefn push_constants_range(&self, _: usize) -> Option<PipelineLayoutDescPcRange>
fn push_constants_range(&self, _: usize) -> Option<PipelineLayoutDescPcRange>
Returns a description of the given push constants range. Read more
sourcefn provided_set_layout(
&self,
_set: usize
) -> Option<Arc<UnsafeDescriptorSetLayout>>
fn provided_set_layout(
&self,
_set: usize
) -> Option<Arc<UnsafeDescriptorSetLayout>>
If the
PipelineLayoutDesc
implementation is able to provide an existing
UnsafeDescriptorSetLayout
for a given set, it can do so by returning it here. Read moresourcefn union<T>(self, other: T) -> PipelineLayoutDescUnion<Self, T>where
Self: Sized,
fn union<T>(self, other: T) -> PipelineLayoutDescUnion<Self, T>where
Self: Sized,
Builds the union of this layout and another.
sourcefn check_against_limits(
&self,
device: &Device
) -> Result<(), PipelineLayoutLimitsError>
fn check_against_limits(
&self,
device: &Device
) -> Result<(), PipelineLayoutLimitsError>
Checks whether this description fulfills the device limits requirements.
sourcefn build(
self,
device: Arc<Device>
) -> Result<PipelineLayout<Self>, PipelineLayoutCreationError>where
Self: Sized,
fn build(
self,
device: Arc<Device>
) -> Result<PipelineLayout<Self>, PipelineLayoutCreationError>where
Self: Sized,
Turns the layout description into a
PipelineLayout
object that can be used by Vulkan. Read moreimpl Copy for EmptyPipelineDesc
Auto Trait Implementations
impl RefUnwindSafe for EmptyPipelineDesc
impl Send for EmptyPipelineDesc
impl Sync for EmptyPipelineDesc
impl Unpin for EmptyPipelineDesc
impl UnwindSafe for EmptyPipelineDesc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.