hiprtCreateGeometry

Creates hiprtGeometry representing acceleration structure topology.

hiprtError hiprtCreateGeometry(

hiprtContext context,

const hiprtGeometryBuildInput* buildInput,

const hiprtBuildOptions* buildOptions,

hiprtGeometry* outGeometry);

Parameters

Parameter

Description

context

HIPRT API context.

buildInput

Describes input primitive to build geometry from.

buildOptions

Various flags controlling build process.

outGeometry

Resulting geometry.

Return

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