NVIDIA OptiX 8.1 nvidia_logo_transpbg.gif Up
OptixBuildInputOpacityMicromap Struct Reference

#include <optix_types.h>

Public Attributes

OptixOpacityMicromapArrayIndexingMode indexingMode
 
CUdeviceptr opacityMicromapArray
 
CUdeviceptr indexBuffer
 
unsigned int indexSizeInBytes
 
unsigned int indexStrideInBytes
 
unsigned int indexOffset
 
unsigned int numMicromapUsageCounts
 
const OptixOpacityMicromapUsageCountmicromapUsageCounts
 

Member Data Documentation

 indexBuffer

CUdeviceptr OptixBuildInputOpacityMicromap::indexBuffer

int16 or int32 buffer specifying which opacity micromap index to use for each triangle. Instead of an actual index, one of the predefined indices OPTIX_OPACITY_MICROMAP_PREDEFINED_INDEX_(FULLY_TRANSPARENT | FULLY_OPAQUE | FULLY_UNKNOWN_TRANSPARENT | FULLY_UNKNOWN_OPAQUE) can be used to indicate that there is no opacity micromap for this particular triangle but the triangle is in a uniform state and the selected behavior is applied to the entire triangle. This buffer is required when OptixBuildInputOpacityMicromap::indexingMode is OPTIX_OPACITY_MICROMAP_ARRAY_INDEXING_MODE_INDEXED. Must be zero if OptixBuildInputOpacityMicromap::indexingMode is OPTIX_OPACITY_MICROMAP_ARRAY_INDEXING_MODE_LINEAR or OPTIX_OPACITY_MICROMAP_ARRAY_INDEXING_MODE_NONE.

 indexingMode

OptixOpacityMicromapArrayIndexingMode OptixBuildInputOpacityMicromap::indexingMode

Indexing mode of triangle to opacity micromap array mapping.

 indexOffset

unsigned int OptixBuildInputOpacityMicromap::indexOffset

Constant offset to non-negative opacity micromap indices.

 indexSizeInBytes

unsigned int OptixBuildInputOpacityMicromap::indexSizeInBytes

0, 2 or 4 (unused, 16 or 32 bit) Must be non-zero when OptixBuildInputOpacityMicromap::indexingMode is OPTIX_OPACITY_MICROMAP_ARRAY_INDEXING_MODE_INDEXED.

 indexStrideInBytes

unsigned int OptixBuildInputOpacityMicromap::indexStrideInBytes

Opacity micromap index buffer stride. If set to zero, indices are assumed to be tightly packed and stride is inferred from OptixBuildInputOpacityMicromap::indexSizeInBytes.

 micromapUsageCounts

const OptixOpacityMicromapUsageCount* OptixBuildInputOpacityMicromap::micromapUsageCounts

List of number of usages of opacity micromaps of format and subdivision combinations. Counts with equal format and subdivision combination (duplicates) are added together.

 numMicromapUsageCounts

unsigned int OptixBuildInputOpacityMicromap::numMicromapUsageCounts

 opacityMicromapArray

CUdeviceptr OptixBuildInputOpacityMicromap::opacityMicromapArray

Device pointer to a opacity micromap array used by this build input array. This buffer is required when OptixBuildInputOpacityMicromap::indexingMode is OPTIX_OPACITY_MICROMAP_ARRAY_INDEXING_MODE_LINEAR or OPTIX_OPACITY_MICROMAP_ARRAY_INDEXING_MODE_INDEXED. Must be zero if OptixBuildInputOpacityMicromap::indexingMode is OPTIX_OPACITY_MICROMAP_ARRAY_INDEXING_MODE_NONE.