Struct screen_13::driver::AccelerationStructure
source · [−]pub struct AccelerationStructure<P> where
P: SharedPointerKind, {
pub buffer: Buffer<P>,
pub info: AccelerationStructureInfo,
/* private fields */
}Fields
buffer: Buffer<P>info: AccelerationStructureInfoImplementations
sourceimpl<P> AccelerationStructure<P> where
P: SharedPointerKind,
impl<P> AccelerationStructure<P> where
P: SharedPointerKind,
pub fn create(
device: &SharedPointer<Device<P>, P>,
info: impl Into<AccelerationStructureInfo>
) -> Result<Self, DriverError>
pub fn device_address(this: &Self) -> DeviceAddress
pub fn size_of(
device: &SharedPointer<Device<P>, P>,
info: &AccelerationStructureGeometryInfo
) -> AccelerationStructureSize
Trait Implementations
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, AccelerationStructureNode<P>, P> for AccelerationStructure<P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, AccelerationStructureNode<P>, P> for AccelerationStructure<P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> AccelerationStructureNode<P>
sourceimpl<P: Debug> Debug for AccelerationStructure<P> where
P: SharedPointerKind,
impl<P: Debug> Debug for AccelerationStructure<P> where
P: SharedPointerKind,
sourceimpl<P> Deref for AccelerationStructure<P> where
P: SharedPointerKind,
impl<P> Deref for AccelerationStructure<P> where
P: SharedPointerKind,
type Target = AccelerationStructureKHR
type Target = AccelerationStructureKHR
The resulting type after dereferencing.
sourceimpl<P> Drop for AccelerationStructure<P> where
P: SharedPointerKind,
impl<P> Drop for AccelerationStructure<P> where
P: SharedPointerKind,
Auto Trait Implementations
impl<P> !RefUnwindSafe for AccelerationStructure<P>
impl<P> Send for AccelerationStructure<P> where
P: Send,
impl<P> Sync for AccelerationStructure<P> where
P: Sync,
impl<P> Unpin for AccelerationStructure<P> where
P: Unpin,
impl<P> !UnwindSafe for AccelerationStructure<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more