#[repr(C)]
pub struct RpsRuntimeCallbacks { pub pfnBuildRenderGraphPhases: PFN_rpsRuntimeDeviceBuildRenderGraphPhases, pub pfnDestroyRuntime: PFN_rpsRuntimeDeviceDestroy, pub pfnCreateHeap: PFN_rpsRuntimeCreateHeap, pub pfnDestroyHeap: PFN_rpsRuntimeDestroyHeap, pub pfnCreateResource: PFN_rpsRuntimeCreateResource, pub pfnDestroyResource: PFN_rpsRuntimeDestroyResource, pub pfnCreateNodeResources: PFN_rpsRuntimeOpCreateNodeUserResources, pub pfnDestroyNodeResources: PFN_rpsRuntimeOpDestroyNodeUserResources, pub pfnRecordDebugMarker: PFN_rpsRuntimeOpRecordDebugMarker, pub pfnSetDebugName: PFN_rpsRuntimeOpSetDebugName, }
Expand description

@brief Callback functions of a runtime.

Fields§

§pfnBuildRenderGraphPhases: PFN_rpsRuntimeDeviceBuildRenderGraphPhases

< Render graph phase build callback.

§pfnDestroyRuntime: PFN_rpsRuntimeDeviceDestroy

< Runtime destruction callback.

§pfnCreateHeap: PFN_rpsRuntimeCreateHeap

< Heap creation callback.

§pfnDestroyHeap: PFN_rpsRuntimeDestroyHeap

< Heap destruction callback.

§pfnCreateResource: PFN_rpsRuntimeCreateResource

< Resource creation callback.

§pfnDestroyResource: PFN_rpsRuntimeDestroyResource

< Resource destruction callback.

§pfnCreateNodeResources: PFN_rpsRuntimeOpCreateNodeUserResources

< Node resource creation callback.

§pfnDestroyNodeResources: PFN_rpsRuntimeOpDestroyNodeUserResources

< Node argument destruction callback.

§pfnRecordDebugMarker: PFN_rpsRuntimeOpRecordDebugMarker

< Debug marker recording callback.

§pfnSetDebugName: PFN_rpsRuntimeOpSetDebugName

< Debug name setting callback.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.