Radeon ProRender


Loads graph from a protobuf buffer.

rml_status rmlLoadGraphFromBuffer( size_t size,
  const void* buffer,
  rml_graph_format format,
  rml_graph* graph);




Parameter Input/Output Description
size input The buffer size.
buffer input The buffer pointer.
format input The buffer format.
graph output A pointer to a resulting graph handle.

Return and Status Codes

Returns a valid graph handle in case of success and status:

  • RML_OK if the operation is successful
  • RML_ERROR_BAD_PARAMETER if buffer is NULL or graph is NULL
  • RML_ERROR_BAD_MODEL if the model contains an error

To get more details in case of failure, call rmlGetLastError().

The graph should be released with rmlReleaseGraph().