rprContextRenderTile
Renders one tile of the final image.
rpr_status rprContextRenderTile( |
rpr_context context, |
rpr_uint xmin, |
|
rpr_uint xmax, |
|
rpr_uint ymin, |
|
rpr_uint ymax); |
Parameters
Parameter |
Description |
---|---|
context |
The context to use for the rendering. |
xmin |
X coordinate of the top left corner of a tile. |
xmax |
X coordinate of the bottom right corner of a tile. |
ymin |
Y coordinate of the top left corner of a tile. |
ymax |
Y coordinate of the bottom right corner of a tile. |
Notes
Perform evaluation and accumulation of a single sample (or number of samples if iterations are set) on the part of the image.
The call is blocking and the image is ready when returned. The context accumulates the samples in order to progressively refine the image and enable interactive response. So each new call to render refines the resultin image with 1 (or number of iterations) color samples. Call rprFrameBufferClear() if you want to start rendering new image.
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_VIDEO_MEMORY
RPR_ERROR_OUT_OF_SYSTEM_MEMORY
RPR_ERROR_INTERNAL_ERROR