pub type CreateResourceFunc = Option<unsafe extern "C" fn(backendInterface: *mut Interface, createResourceDescription: *const CreateResourceDescription, outResource: *mut ResourceInternal) -> ErrorCode>;Expand description
Create a resource.
This callback is intended for the backend to create internal resources.
Please note: It is also possible that the creation of resources might
itself cause additional resources to be created by simply calling the
@param [in] backendInterface A pointer to the backend interface.
@param [in] createResourceDescription A pointer to a
@retval FFX_OK The operation completed successfully. @retval Anything else The operation failed.
@ingroup FSR2
Aliased Type§
pub enum CreateResourceFunc {
None,
Some(unsafe extern "C" fn(*mut Interface, *const CreateResourceDescription, *mut ResourceInternal) -> i32),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*mut Interface, *const CreateResourceDescription, *mut ResourceInternal) -> i32)
Some value of type T.