Struct sierra::AccelerationStructureBuildFlags[][src]

pub struct AccelerationStructureBuildFlags { /* fields omitted */ }

Bits which can be set in AccelerationStructureInfo specifying additional parameters for acceleration structure builds.

Implementations

impl AccelerationStructureBuildFlags[src]

pub const ALLOW_UPDATE: AccelerationStructureBuildFlags[src]

Allow acceleration structure update operation. Acceleration structure update allows changing internal structure without recreating whole AccelerationStructure instance.

pub const ALLOW_COMPACTION: AccelerationStructureBuildFlags[src]

Allow acceleration structure compaction operation. Compaction allows to reduce memory consumption.

pub const PREFER_FAST_TRACE: AccelerationStructureBuildFlags[src]

Hint implementation to make AccelerationStructure faster to trace.

pub const PREFER_FAST_BUILD: AccelerationStructureBuildFlags[src]

Hint implementation to make AccelerationStructure faster to build.

pub const LOW_MEMORY: AccelerationStructureBuildFlags[src]

Hint implementation to use minimal amount of memory.

pub const fn empty() -> AccelerationStructureBuildFlags[src]

Returns an empty set of flags

pub const fn all() -> AccelerationStructureBuildFlags[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u32[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<AccelerationStructureBuildFlags>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u32) -> AccelerationStructureBuildFlags[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(
    bits: u32
) -> AccelerationStructureBuildFlags
[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: AccelerationStructureBuildFlags) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: AccelerationStructureBuildFlags) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: AccelerationStructureBuildFlags)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: AccelerationStructureBuildFlags)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: AccelerationStructureBuildFlags)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: AccelerationStructureBuildFlags, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for AccelerationStructureBuildFlags[src]

impl BitAnd<AccelerationStructureBuildFlags> for AccelerationStructureBuildFlags[src]

type Output = AccelerationStructureBuildFlags

The resulting type after applying the & operator.

fn bitand(
    self,
    other: AccelerationStructureBuildFlags
) -> AccelerationStructureBuildFlags
[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<AccelerationStructureBuildFlags> for AccelerationStructureBuildFlags[src]

fn bitand_assign(&mut self, other: AccelerationStructureBuildFlags)[src]

Disables all flags disabled in the set.

impl BitOr<AccelerationStructureBuildFlags> for AccelerationStructureBuildFlags[src]

type Output = AccelerationStructureBuildFlags

The resulting type after applying the | operator.

fn bitor(
    self,
    other: AccelerationStructureBuildFlags
) -> AccelerationStructureBuildFlags
[src]

Returns the union of the two sets of flags.

impl BitOrAssign<AccelerationStructureBuildFlags> for AccelerationStructureBuildFlags[src]

fn bitor_assign(&mut self, other: AccelerationStructureBuildFlags)[src]

Adds the set of flags.

impl BitXor<AccelerationStructureBuildFlags> for AccelerationStructureBuildFlags[src]

type Output = AccelerationStructureBuildFlags

The resulting type after applying the ^ operator.

fn bitxor(
    self,
    other: AccelerationStructureBuildFlags
) -> AccelerationStructureBuildFlags
[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<AccelerationStructureBuildFlags> for AccelerationStructureBuildFlags[src]

fn bitxor_assign(&mut self, other: AccelerationStructureBuildFlags)[src]

Toggles the set of flags.

impl Clone for AccelerationStructureBuildFlags[src]

impl Copy for AccelerationStructureBuildFlags[src]

impl Debug for AccelerationStructureBuildFlags[src]

impl Eq for AccelerationStructureBuildFlags[src]

impl Extend<AccelerationStructureBuildFlags> for AccelerationStructureBuildFlags[src]

impl FromIterator<AccelerationStructureBuildFlags> for AccelerationStructureBuildFlags[src]

impl Hash for AccelerationStructureBuildFlags[src]

impl LowerHex for AccelerationStructureBuildFlags[src]

impl Not for AccelerationStructureBuildFlags[src]

type Output = AccelerationStructureBuildFlags

The resulting type after applying the ! operator.

fn not(self) -> AccelerationStructureBuildFlags[src]

Returns the complement of this set of flags.

impl Octal for AccelerationStructureBuildFlags[src]

impl Ord for AccelerationStructureBuildFlags[src]

impl PartialEq<AccelerationStructureBuildFlags> for AccelerationStructureBuildFlags[src]

impl PartialOrd<AccelerationStructureBuildFlags> for AccelerationStructureBuildFlags[src]

impl StructuralEq for AccelerationStructureBuildFlags[src]

impl StructuralPartialEq for AccelerationStructureBuildFlags[src]

impl Sub<AccelerationStructureBuildFlags> for AccelerationStructureBuildFlags[src]

type Output = AccelerationStructureBuildFlags

The resulting type after applying the - operator.

fn sub(
    self,
    other: AccelerationStructureBuildFlags
) -> AccelerationStructureBuildFlags
[src]

Returns the set difference of the two sets of flags.

impl SubAssign<AccelerationStructureBuildFlags> for AccelerationStructureBuildFlags[src]

fn sub_assign(&mut self, other: AccelerationStructureBuildFlags)[src]

Disables all flags enabled in the set.

impl UpperHex for AccelerationStructureBuildFlags[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.