Function nvcvMemRequirementsAddBuffer
Defined in File Requirements.h
Function Documentation
-
NVCVStatus nvcvMemRequirementsAddBuffer(NVCVMemRequirements *memReq, int64_t bufSize, int64_t bufAlignment)
Adds the given buffer size to the memory requirements.
It’ll calculate the correct slot based on the alignment where the buffer request is added. It’ll add enough blocks with
bufAlignment
size to satisfy the memory request.- Parameters:
memReq – [in] Memory requirement to be modified.
Must not be NULL
bufSize – [in] Size in bytes of the buffer memory request. If negative, request will be removed from requirements. Underflows are clamped to 0.
bufAlignment – [in] Alignment of the memory buffer, in bytes.
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Some parameter is outside its valid range.
NVCV_SUCCESS – Operation completed successfully.