NVIDIA OptiX 7.7 nvidia_logo_transpbg.gif Up
OptixDisplacementMicromapArrayBuildInput Struct Reference

#include <optix_types.h>

Public Attributes

OptixDisplacementMicromapFlags flags
 
CUdeviceptr displacementValuesBuffer
 
CUdeviceptr perDisplacementMicromapDescBuffer
 
unsigned int perDisplacementMicromapDescStrideInBytes
 
unsigned int numDisplacementMicromapHistogramEntries
 
const OptixDisplacementMicromapHistogramEntrydisplacementMicromapHistogramEntries
 

Detailed Description

Inputs to displacement micromaps array construction.

Member Data Documentation

 displacementMicromapHistogramEntries

const OptixDisplacementMicromapHistogramEntry* OptixDisplacementMicromapArrayBuildInput::displacementMicromapHistogramEntries

Histogram over DMMs for input format and subdivision combinations. Counts of histogram bins with equal format and subdivision combinations are added together.

 displacementValuesBuffer

CUdeviceptr OptixDisplacementMicromapArrayBuildInput::displacementValuesBuffer

128 byte aligned pointer for displacement micromap raw input data.

 flags

OptixDisplacementMicromapFlags OptixDisplacementMicromapArrayBuildInput::flags

Flags that apply to all displacement micromaps in array.

 numDisplacementMicromapHistogramEntries

unsigned int OptixDisplacementMicromapArrayBuildInput::numDisplacementMicromapHistogramEntries

 perDisplacementMicromapDescBuffer

CUdeviceptr OptixDisplacementMicromapArrayBuildInput::perDisplacementMicromapDescBuffer

Descriptors for interpreting raw input data, one OptixDisplacementMicromapDesc entry required per displacement micromap. This device pointer must be a multiple of OPTIX_DISPLACEMENT_MICROMAP_DESC_BUFFER_BYTE_ALIGNMENT.

 perDisplacementMicromapDescStrideInBytes

unsigned int OptixDisplacementMicromapArrayBuildInput::perDisplacementMicromapDescStrideInBytes

Stride between OptixDisplacementMicromapDesc in perDisplacementMicromapDescBuffer If set to zero, the displacement micromap descriptors are assumed to be tightly packed and the stride is assumed to be sizeof( OptixDisplacementMicromapDesc ). This stride must be a multiple of OPTIX_DISPLACEMENT_MICROMAP_DESC_BUFFER_BYTE_ALIGNMENT.