rprShapeSetSubdivisionAutoRatioCap

Enables or disables the auto ratio cap for subdivision.

rpr_status rprShapeSetSubdivisionAutoRatioCap(

rpr_shape shape,

rpr_float autoRatioCap);

Parameters

Parameter

Description

shape

The shape to set an auto ratio cap for.

autoRatioCap

A value from 0.0 to 1.0.
autoRatioCap = 1.0 means very large polygons, less tessellation. As it goes to 0.0, it does more tessellation.
This value is ratio of the largest edge in the screen. Example: If you want to make an edge 10 pixels on 1080p, you need to set 10/1080.

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.