pub struct PipelineLayoutDescUnion<A, B> { /* private fields */ }
Expand description
Contains the union of two pipeline layout description.
If A
and B
both implement PipelineLayoutDesc
, then this struct also implements
PipelineLayoutDesc
and will correspond to the union of the A
object and the B
object.
Implementations
sourceimpl<A, B> PipelineLayoutDescUnion<A, B>
impl<A, B> PipelineLayoutDescUnion<A, B>
pub fn new(a: A, b: B) -> PipelineLayoutDescUnion<A, B>
Trait Implementations
sourceimpl<A, B> PipelineLayoutDesc for PipelineLayoutDescUnion<A, B>where
A: PipelineLayoutDesc,
B: PipelineLayoutDesc,
impl<A, B> PipelineLayoutDesc for PipelineLayoutDescUnion<A, B>where
A: PipelineLayoutDesc,
B: PipelineLayoutDesc,
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 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 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 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<A, B> RefUnwindSafe for PipelineLayoutDescUnion<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for PipelineLayoutDescUnion<A, B>where
A: Send,
B: Send,
impl<A, B> Sync for PipelineLayoutDescUnion<A, B>where
A: Sync,
B: Sync,
impl<A, B> Unpin for PipelineLayoutDescUnion<A, B>where
A: Unpin,
B: Unpin,
impl<A, B> UnwindSafe for PipelineLayoutDescUnion<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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.