Struct asche::DeferredOperation[][src]

pub struct DeferredOperation {
    pub raw: DeferredOperationKHR,
    // some fields omitted
}

Wraps a deferred operation.

Fields

raw: DeferredOperationKHR

The raw Vulkan deferred operation.

Implementations

impl DeferredOperation[src]

pub fn join(&self) -> Result<(), AscheError>[src]

Assign a thread to a deferred operation.

https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkDeferredOperationJoinKHR.html

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

Query the maximum concurrency on a deferred operation.

https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkGetDeferredOperationMaxConcurrencyKHR.html

pub fn result(&self) -> Result<(), AscheError>[src]

Query the result of a deferred operation.

https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkGetDeferredOperationResultKHR.html

pub fn build_acceleration_structures(
    &self,
    infos: &[AccelerationStructureBuildGeometryInfoKHRBuilder<'_>],
    build_range_infos: &[AccelerationStructureBuildRangeInfoKHR]
) -> Result<(), AscheError>
[src]

Build an acceleration structure on the host.

https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkBuildAccelerationStructuresKHR.html

pub fn copy_acceleration_structure(
    &self,
    info: &CopyAccelerationStructureInfoKHRBuilder<'_>
) -> Result<(), AscheError>
[src]

Copy an acceleration structure on the host.

https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCopyAccelerationStructureKHR.html

pub fn copy_acceleration_structure_to_memory(
    &self,
    info: &CopyAccelerationStructureToMemoryInfoKHR
) -> Result<(), AscheError>
[src]

Serialize an acceleration structure on the host.

https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCopyAccelerationStructureToMemoryKHR.html

pub fn copy_memory_to_acceleration_structure(
    &self,
    info: &CopyMemoryToAccelerationStructureInfoKHR
) -> Result<(), AscheError>
[src]

Deserialize an acceleration structure on the host.

https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCopyMemoryToAccelerationStructureKHR.html

Trait Implementations

impl Debug for DeferredOperation[src]

impl Drop for DeferredOperation[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, 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.