Struct rps_sys::RpsCmdCallbackContext
source · #[repr(C)]pub struct RpsCmdCallbackContext {
pub hCommandBuffer: RpsRuntimeCommandBuffer,
pub pUserRecordContext: *mut c_void,
pub pCmdCallbackContext: *mut c_void,
pub ppArgs: *const *mut c_void,
pub numArgs: u32,
pub userTag: u32,
}Expand description
Parameters of a command callback context.
Fields§
§hCommandBuffer: RpsRuntimeCommandBufferHandle to the command buffer for command recording.
pUserRecordContext: *mut c_voidUser context passed as RpsRenderGraphRecordCommandInfo::pUserContext. Can vary per rpsRenderGraphRecordCommands call and can e.g. be used as per-thread context if doing multi-threaded recording.
pCmdCallbackContext: *mut c_voidUser context specified with the command node callback function, for example via a rpsProgramBindNode call. Can vary per callback.
ppArgs: *const *mut c_voidPointer to an array of [void* const] with numArgs pointers to arguments to use for the callback. Must not be NULL if numArgs != 0.
numArgs: u32Number of arguments defined for the callback.
userTag: u32User defined tag for associations with a specific node. Can be set by passing a value to [rpsCmdCallNode].
Trait Implementations§
source§impl Clone for RpsCmdCallbackContext
impl Clone for RpsCmdCallbackContext
source§fn clone(&self) -> RpsCmdCallbackContext
fn clone(&self) -> RpsCmdCallbackContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more