Struct ash::vk::AccelerationStructureCreateInfoKHR
source · #[repr(C)]pub struct AccelerationStructureCreateInfoKHR<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub create_flags: AccelerationStructureCreateFlagsKHR,
pub buffer: Buffer,
pub offset: DeviceSize,
pub size: DeviceSize,
pub ty: AccelerationStructureTypeKHR,
pub device_address: DeviceAddress,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *const c_void
§create_flags: AccelerationStructureCreateFlagsKHR
§buffer: Buffer
§offset: DeviceSize
§size: DeviceSize
§ty: AccelerationStructureTypeKHR
§device_address: DeviceAddress
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> AccelerationStructureCreateInfoKHR<'a>
impl<'a> AccelerationStructureCreateInfoKHR<'a>
pub fn create_flags( self, create_flags: AccelerationStructureCreateFlagsKHR, ) -> Self
pub fn buffer(self, buffer: Buffer) -> Self
pub fn offset(self, offset: DeviceSize) -> Self
pub fn size(self, size: DeviceSize) -> Self
pub fn ty(self, ty: AccelerationStructureTypeKHR) -> Self
pub fn device_address(self, device_address: DeviceAddress) -> Self
sourcepub fn push_next<T: ExtendsAccelerationStructureCreateInfoKHR + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsAccelerationStructureCreateInfoKHR + ?Sized>( self, next: &'a mut T, ) -> Self
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C
, and you call x.push_next(&mut D)
, then the
chain will look like A -> D -> B -> C
.
Trait Implementations§
source§impl<'a> Clone for AccelerationStructureCreateInfoKHR<'a>
impl<'a> Clone for AccelerationStructureCreateInfoKHR<'a>
source§fn clone(&self) -> AccelerationStructureCreateInfoKHR<'a>
fn clone(&self) -> AccelerationStructureCreateInfoKHR<'a>
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 moresource§impl<'a> Debug for AccelerationStructureCreateInfoKHR<'a>
impl<'a> Debug for AccelerationStructureCreateInfoKHR<'a>
source§impl Default for AccelerationStructureCreateInfoKHR<'_>
impl Default for AccelerationStructureCreateInfoKHR<'_>
source§impl<'a> TaggedStructure for AccelerationStructureCreateInfoKHR<'a>
impl<'a> TaggedStructure for AccelerationStructureCreateInfoKHR<'a>
const STRUCTURE_TYPE: StructureType = StructureType::ACCELERATION_STRUCTURE_CREATE_INFO_KHR
impl<'a> Copy for AccelerationStructureCreateInfoKHR<'a>
impl Send for AccelerationStructureCreateInfoKHR<'_>
impl Sync for AccelerationStructureCreateInfoKHR<'_>
Auto Trait Implementations§
impl<'a> Freeze for AccelerationStructureCreateInfoKHR<'a>
impl<'a> RefUnwindSafe for AccelerationStructureCreateInfoKHR<'a>
impl<'a> Unpin for AccelerationStructureCreateInfoKHR<'a>
impl<'a> UnwindSafe for AccelerationStructureCreateInfoKHR<'a>
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