Struct vulkano::descriptor::pipeline_layout::RuntimePipelineDesc
source · pub struct RuntimePipelineDesc { /* private fields */ }
Expand description
Runtime description of a pipeline layout.
Implementations
sourceimpl RuntimePipelineDesc
impl RuntimePipelineDesc
sourcepub fn new<TSetsIter, TPushConstsIter, TDescriptorsIter>(
desc: TSetsIter,
push_constants: TPushConstsIter
) -> Result<RuntimePipelineDesc, RuntimePipelineDescError>where
TSetsIter: IntoIterator<Item = TDescriptorsIter>,
TDescriptorsIter: IntoIterator<Item = Option<DescriptorDesc>>,
TPushConstsIter: IntoIterator<Item = PipelineLayoutDescPcRange>,
pub fn new<TSetsIter, TPushConstsIter, TDescriptorsIter>(
desc: TSetsIter,
push_constants: TPushConstsIter
) -> Result<RuntimePipelineDesc, RuntimePipelineDescError>where
TSetsIter: IntoIterator<Item = TDescriptorsIter>,
TDescriptorsIter: IntoIterator<Item = Option<DescriptorDesc>>,
TPushConstsIter: IntoIterator<Item = PipelineLayoutDescPcRange>,
Builds a new RuntimePipelineDesc
from the descriptors and push constants descriptions.
Trait Implementations
sourceimpl Clone for RuntimePipelineDesc
impl Clone for RuntimePipelineDesc
sourcefn clone(&self) -> RuntimePipelineDesc
fn clone(&self) -> RuntimePipelineDesc
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 RuntimePipelineDesc
impl Debug for RuntimePipelineDesc
sourceimpl PipelineLayoutDesc for RuntimePipelineDesc
impl PipelineLayoutDesc for RuntimePipelineDesc
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, set: usize) -> Option<usize>
fn num_bindings_in_set(&self, set: usize) -> Option<usize>
Returns the number of descriptors in the set. Includes possibly empty descriptors. Read more
sourcefn descriptor(&self, set: usize, binding: usize) -> Option<DescriptorDesc>
fn descriptor(&self, set: usize, binding: 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, num: usize) -> Option<PipelineLayoutDescPcRange>
fn push_constants_range(&self, num: 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 moreAuto Trait Implementations
impl RefUnwindSafe for RuntimePipelineDesc
impl Send for RuntimePipelineDesc
impl Sync for RuntimePipelineDesc
impl Unpin for RuntimePipelineDesc
impl UnwindSafe for RuntimePipelineDesc
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.