pub struct AccelerationStructureInfoBuilder { /* private fields */ }
Expand description
Builder for AccelerationStructureInfo
.
Implementations§
source§impl AccelerationStructureInfoBuilder
impl AccelerationStructureInfoBuilder
sourcepub fn ty(self, value: AccelerationStructureTypeKHR) -> Self
pub fn ty(self, value: AccelerationStructureTypeKHR) -> Self
Type of acceleration structure.
sourcepub fn size(self, value: DeviceSize) -> Self
pub fn size(self, value: DeviceSize) -> Self
The size of the backing buffer that will store the acceleration structure.
Use AccelerationStructure::size_of
to calculate this value.
source§impl AccelerationStructureInfoBuilder
impl AccelerationStructureInfoBuilder
sourcepub fn build(self) -> AccelerationStructureInfo
pub fn build(self) -> AccelerationStructureInfo
Builds a new AccelerationStructureInfo
.
§Panics
If any of the following values have not been set this function will panic:
size
Trait Implementations§
source§impl Clone for AccelerationStructureInfoBuilder
impl Clone for AccelerationStructureInfoBuilder
source§fn clone(&self) -> AccelerationStructureInfoBuilder
fn clone(&self) -> AccelerationStructureInfoBuilder
Returns a copy 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 moreimpl Copy for AccelerationStructureInfoBuilder
Auto Trait Implementations§
impl RefUnwindSafe for AccelerationStructureInfoBuilder
impl Send for AccelerationStructureInfoBuilder
impl Sync for AccelerationStructureInfoBuilder
impl Unpin for AccelerationStructureInfoBuilder
impl UnwindSafe for AccelerationStructureInfoBuilder
Blanket Implementations§
source§impl<T> Alias<AccelerationStructureInfoBuilder, AccelerationStructure> for T
impl<T> Alias<AccelerationStructureInfoBuilder, AccelerationStructure> for T
source§fn alias(
&mut self,
builder: AccelerationStructureInfoBuilder
) -> Result<Arc<Lease<AccelerationStructure>>, DriverError>
fn alias( &mut self, builder: AccelerationStructureInfoBuilder ) -> Result<Arc<Lease<AccelerationStructure>>, DriverError>
Aliases a resource.
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
source§impl<T> Pool<AccelerationStructureInfoBuilder, AccelerationStructure> for T
impl<T> Pool<AccelerationStructureInfoBuilder, AccelerationStructure> for T
source§fn lease(
&mut self,
builder: AccelerationStructureInfoBuilder
) -> Result<Lease<AccelerationStructure>, DriverError>
fn lease( &mut self, builder: AccelerationStructureInfoBuilder ) -> Result<Lease<AccelerationStructure>, DriverError>
Lease a resource.