Function rps_sys::rpsRenderGraphAddNode
source · pub unsafe extern "C" fn rpsRenderGraphAddNode(
hRenderGraphBuilder: RpsRenderGraphBuilder,
nodeDeclId: RpsNodeDeclId,
userTag: u32,
callback: PFN_rpsCmdCallback,
pCallbackUserContext: *mut c_void,
pArgs: *const RpsVariable,
numArgs: u32
) -> RpsNodeIdExpand description
Adds a render graph node to a render graph.
@param hRenderGraphBuilder Handle to the render graph builder. Must not be RPS_NULL_HANDLE. @param nodeDeclId Node declaration ID. @param userTag User controlled tag for associations with a node call. Is accessible through RpsCmdCallbackContext. @param callback Pointer to the callback function. @param pCallbackUserContext Pointer to a user controlled structure to be passed to the callback. @param pArgs Pointer to the parameters used for the callback. Must not be NULL if numArgs != 0. @param numArgs Number of parameters used for the callback.
@returns ID of the command node.