#[non_exhaustive]#[repr(i32)]pub enum AccelerationStructureBuildType {
Host = 0,
Device = 1,
HostOrDevice = 2,
}Expand description
Where the building of an acceleration structure will take place.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Host = 0
Building will take place on the host.
Device = 1
Building will take place on the device.
HostOrDevice = 2
Building will take place on either the host or the device.
Trait Implementations§
Source§impl Clone for AccelerationStructureBuildType
impl Clone for AccelerationStructureBuildType
Source§fn clone(&self) -> AccelerationStructureBuildType
fn clone(&self) -> AccelerationStructureBuildType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<AccelerationStructureBuildType> for AccelerationStructureBuildTypeKHR
impl From<AccelerationStructureBuildType> for AccelerationStructureBuildTypeKHR
Source§fn from(
val: AccelerationStructureBuildType,
) -> AccelerationStructureBuildTypeKHR
fn from( val: AccelerationStructureBuildType, ) -> AccelerationStructureBuildTypeKHR
Converts to this type from the input type.
Source§impl PartialEq for AccelerationStructureBuildType
impl PartialEq for AccelerationStructureBuildType
Source§fn eq(&self, other: &AccelerationStructureBuildType) -> bool
fn eq(&self, other: &AccelerationStructureBuildType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<AccelerationStructureBuildTypeKHR> for AccelerationStructureBuildType
impl TryFrom<AccelerationStructureBuildTypeKHR> for AccelerationStructureBuildType
Source§fn try_from(
val: AccelerationStructureBuildTypeKHR,
) -> Result<AccelerationStructureBuildType, <AccelerationStructureBuildType as TryFrom<AccelerationStructureBuildTypeKHR>>::Error>
fn try_from( val: AccelerationStructureBuildTypeKHR, ) -> Result<AccelerationStructureBuildType, <AccelerationStructureBuildType as TryFrom<AccelerationStructureBuildTypeKHR>>::Error>
Performs the conversion.
impl Copy for AccelerationStructureBuildType
impl Eq for AccelerationStructureBuildType
impl StructuralPartialEq for AccelerationStructureBuildType
Auto Trait Implementations§
impl Freeze for AccelerationStructureBuildType
impl RefUnwindSafe for AccelerationStructureBuildType
impl Send for AccelerationStructureBuildType
impl Sync for AccelerationStructureBuildType
impl Unpin for AccelerationStructureBuildType
impl UnwindSafe for AccelerationStructureBuildType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more