NVIDIA OptiX 8.1 nvidia_logo_transpbg.gif Up
OptixAccelBufferSizes Struct Reference

#include <optix_types.h>

Public Attributes

size_t outputSizeInBytes
 
size_t tempSizeInBytes
 
size_t tempUpdateSizeInBytes
 

Detailed Description

Struct for querying builder allocation requirements.

Once queried the sizes should be used to allocate device memory of at least these sizes.

See also
optixAccelComputeMemoryUsage()

Member Data Documentation

 outputSizeInBytes

size_t OptixAccelBufferSizes::outputSizeInBytes

The size in bytes required for the outputBuffer parameter to optixAccelBuild when doing a build (OPTIX_BUILD_OPERATION_BUILD).

 tempSizeInBytes

size_t OptixAccelBufferSizes::tempSizeInBytes

The size in bytes required for the tempBuffer paramter to optixAccelBuild when doing a build (OPTIX_BUILD_OPERATION_BUILD).

 tempUpdateSizeInBytes

size_t OptixAccelBufferSizes::tempUpdateSizeInBytes

The size in bytes required for the tempBuffer parameter to optixAccelBuild when doing an update (OPTIX_BUILD_OPERATION_UPDATE). This value can be different than tempSizeInBytes used for a full build. Only non-zero if OPTIX_BUILD_FLAG_ALLOW_UPDATE flag is set in OptixAccelBuildOptions.