pub struct DescriptorSetLayoutCreateFlags(/* private fields */);
Expand description
Flags that control how a descriptor set layout is created.
Implementations§
source§impl DescriptorSetLayoutCreateFlags
impl DescriptorSetLayoutCreateFlags
sourcepub const UPDATE_AFTER_BIND_POOL: Self = _
pub const UPDATE_AFTER_BIND_POOL: Self = _
Whether descriptor sets using this descriptor set layout must be allocated from a
descriptor pool whose flags contain DescriptorPoolCreateFlags::UPDATE_AFTER_BIND
.
Descriptor set layouts with this flag use alternative (typically higher) device limits on
per-stage and total descriptor counts, which have _update_after_bind_
in their names.
This flag must be specified whenever the layout contains one or more bindings that have
the DescriptorBindingFlags::UPDATE_AFTER_BIND
flag, but can be specified also if none
of the bindings have this flag, purely to use the alternative device limits.
sourcepub const PUSH_DESCRIPTOR: Self = _
pub const PUSH_DESCRIPTOR: Self = _
Whether the descriptor set layout should be created for push descriptors.
If set, the layout can only be used for push descriptors, and if not set, it can only be used for regular descriptor sets.
If set, there are several restrictions:
- There must be no bindings with a type of
DescriptorType::UniformBufferDynamic
,DescriptorType::StorageBufferDynamic
orDescriptorType::InlineUniformBlock
. - There must be no bindings with
variable_descriptor_count
enabled. - The total number of descriptors across all bindings must be less than the
max_push_descriptors
limit.
sourcepub const fn empty() -> Self
pub const fn empty() -> Self
Returns a DescriptorSetLayoutCreateFlags
with none of the flags set.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a DescriptorSetLayoutCreateFlags
with none of the flags set.
sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self
and other
.
sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other
are set in self
.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self
and other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self
without the flags set in other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self
or other
, but not in both.
Trait Implementations§
source§impl BitAndAssign for DescriptorSetLayoutCreateFlags
impl BitAndAssign for DescriptorSetLayoutCreateFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOrAssign for DescriptorSetLayoutCreateFlags
impl BitOrAssign for DescriptorSetLayoutCreateFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl BitXorAssign for DescriptorSetLayoutCreateFlags
impl BitXorAssign for DescriptorSetLayoutCreateFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresource§impl Clone for DescriptorSetLayoutCreateFlags
impl Clone for DescriptorSetLayoutCreateFlags
source§fn clone(&self) -> DescriptorSetLayoutCreateFlags
fn clone(&self) -> DescriptorSetLayoutCreateFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl From<DescriptorSetLayoutCreateFlags> for DescriptorSetLayoutCreateFlags
impl From<DescriptorSetLayoutCreateFlags> for DescriptorSetLayoutCreateFlags
source§fn from(val: DescriptorSetLayoutCreateFlags) -> Self
fn from(val: DescriptorSetLayoutCreateFlags) -> Self
source§impl From<DescriptorSetLayoutCreateFlags> for DescriptorSetLayoutCreateFlags
impl From<DescriptorSetLayoutCreateFlags> for DescriptorSetLayoutCreateFlags
source§fn from(val: DescriptorSetLayoutCreateFlags) -> Self
fn from(val: DescriptorSetLayoutCreateFlags) -> Self
source§impl PartialEq for DescriptorSetLayoutCreateFlags
impl PartialEq for DescriptorSetLayoutCreateFlags
source§fn eq(&self, other: &DescriptorSetLayoutCreateFlags) -> bool
fn eq(&self, other: &DescriptorSetLayoutCreateFlags) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Sub for DescriptorSetLayoutCreateFlags
impl Sub for DescriptorSetLayoutCreateFlags
source§impl SubAssign for DescriptorSetLayoutCreateFlags
impl SubAssign for DescriptorSetLayoutCreateFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more