rrCmdBuildScene
Builds or updates a scene.
Given a number of geometry buffers with instances description from the client, this function builds top level acceleration structure topology (in case of a build) or updates acceleration structure keeping topology intact (update) in frames of an allocated scene buffer.
RRError rrCmdBuildScene( |
RRContext context, |
const RRGeometryBuildInput* build_input, |
|
const RRBuildOptions* build_options, |
|
RRDevicePtr temporary_buffer, |
|
RRDevicePtr scene_buffer, |
|
RRCommandStream command_stream); |
Applies to
All supported backends
Parameters
Parameter |
Input/Output |
Description |
---|---|---|
context |
input |
RR API context. |
build_input |
input |
Decribes input geometires to build scene for. |
build_options |
input |
Various flags controlling build process. |
temporary_buffer |
input |
Temporary buffer for build operation. |
scene_buffer |
output |
Buffer to write scene to. |
command_stream |
input |
Command stream to write command. |
Return
Returns an error in case of a failure, or RR_Success otherwise.