rprContextCreateMaterialSystem

Creates a material system.

rpr_status rprContextCreateMaterialSystem(

rpr_context in_context,

rpr_material_system_type type,

rpr_material_system * out_matsys);

Parameters

Parameter

Description

in_context

Context used for creating material system.

type

Unused, set to 0.

out_matsys

The resulting material system used for creating material nodes.

Notes

This is the basis for creating material nodes.

Output

A pointer to a material system.

Return

Returns RPR_SUCCESS in case of success, or RPR_ERROR code if a problem was encountered.

To learn how to handle errors in AMD Radeon ProRender SDK, see Error Handling.

Errors

Possible error codes:

  • RPR_ERROR_OUT_OF_SYSTEM_MEMORY

  • RPR_ERROR_OUT_OF_VIDEO_MEMORY