hiprtBuildScene

Build or update a scene.

Given a number of hiprtGeometries from the client, this function builds hiprtScene representing top level acceleration structure topology (in case of a build) or updates acceleration structure keeping topology intact (update).

hiprtError hiprtBuildScene(

hiprtContext context,

hiprtBuildOperation buildOperation,

const hiprtSceneBuildInput* buildInput,

const hiprtBuildOptions* buildOptions,

hiprtDevicePtr temporaryBuffer,

hiprtApiStream stream,

hiprtScene outScene);

Parameters

Parameter

Description

context

HIPRT API context.

buildOperation

Type of build operation.

buildInput

Decribes input geometires to build scene for.

buildOptions

Various flags controlling build process.

temporaryBuffer

Temporary buffer for build operation.

stream

Stream to run acceleration structure build command.

outScene

Resulting scene.

Return

Returns HIPRT error in case of a failure, or hiprtSuccess otherwise.