Rate This Document
Findability
Accuracy
Completeness
Readability

RetriveBufferData

Function Usage

Retrieves data in a buffer.

This API copies data in a buffer to the memory provided by the caller. It is usually called when the MapBuffer API cannot map data in a buffer to continuous memory.

Restrictions

Data in the buffer must have been mapped through the MapBuffer API.

Prototype

int32_t RetriveBufferData(GpuEncoderBufferT &buffer, uint8_t *data, uint32_t memLen, uint32_t &dataLen) = 0

Parameter Description

Field Name

Input/Output

Field Type

Description

buffer

Input

GpuEncoderBufferT &

Pointer to the buffer whose data needs to be copied.

data

Input

uint8_t *

Address of the memory space for receiving buffer data.

memLen

Input

uint32_t

Maximum length of the memory space for receiving buffer data.

dataLen

Output

uint32_t &

Size of the data to be copied.

Return Value Description

Data type: GpuEncoderErrorCode

The value can be any of the following:

  • OK: The buffer data is successfully retrieved.
  • Other: Failed to retrieve data in the buffer.