pub type CreateBackendContextFunc = Option<unsafe extern "C" fn(backendInterface: *mut Interface, device: Device) -> ErrorCode>;Expand description
Create and initialize the backend context.
The callback function sets up the backend context for rendering. It will create or reference the device and create required internal data structures.
@param [in] backendInterface A pointer to the backend interface. @param [in] device The FfxDevice obtained by ffxGetDevice(DX12/VK/…).
@retval FFX_OK The operation completed successfully. @retval Anything else The operation failed.
@ingroup FSR2
Aliased Type§
pub enum CreateBackendContextFunc {
None,
Some(unsafe extern "C" fn(*mut Interface, *mut c_void) -> i32),
}