NVIDIA OptiX 7.7 nvidia_logo_transpbg.gif Up
OptixBuildInputDisplacementMicromap Struct Reference

#include <optix_types.h>

Public Attributes

OptixDisplacementMicromapArrayIndexingMode indexingMode
 
CUdeviceptr displacementMicromapArray
 
CUdeviceptr displacementMicromapIndexBuffer
 
CUdeviceptr vertexDirectionsBuffer
 
CUdeviceptr vertexBiasAndScaleBuffer
 
CUdeviceptr triangleFlagsBuffer
 
unsigned int displacementMicromapIndexOffset
 
unsigned int displacementMicromapIndexStrideInBytes
 
unsigned int displacementMicromapIndexSizeInBytes
 
OptixDisplacementMicromapDirectionFormat vertexDirectionFormat
 
unsigned int vertexDirectionStrideInBytes
 
OptixDisplacementMicromapBiasAndScaleFormat vertexBiasAndScaleFormat
 
unsigned int vertexBiasAndScaleStrideInBytes
 
unsigned int triangleFlagsStrideInBytes
 
unsigned int numDisplacementMicromapUsageCounts
 
const OptixDisplacementMicromapUsageCountdisplacementMicromapUsageCounts
 

Detailed Description

Optional displacement part of a triangle array input.

Member Data Documentation

 displacementMicromapArray

CUdeviceptr OptixBuildInputDisplacementMicromap::displacementMicromapArray

Address to a displacement micromap array used by this build input array. Set to NULL to disable DMs for this input.

 displacementMicromapIndexBuffer

CUdeviceptr OptixBuildInputDisplacementMicromap::displacementMicromapIndexBuffer

int16 or int32 buffer specifying which displacement micromap index to use for each triangle. Only valid if displacementMicromapArray != NULL.

 displacementMicromapIndexOffset

unsigned int OptixBuildInputDisplacementMicromap::displacementMicromapIndexOffset

Constant offset to displacement micromap indices as specified by the displacement micromap index buffer.

 displacementMicromapIndexSizeInBytes

unsigned int OptixBuildInputDisplacementMicromap::displacementMicromapIndexSizeInBytes

2 or 4 (16 or 32 bit)

 displacementMicromapIndexStrideInBytes

unsigned int OptixBuildInputDisplacementMicromap::displacementMicromapIndexStrideInBytes

Displacement micromap index buffer stride. If set to zero, indices are assumed to be tightly packed and stride is inferred from OptixBuildInputDisplacementMicromap::displacementMicromapIndexSizeInBytes.

 displacementMicromapUsageCounts

const OptixDisplacementMicromapUsageCount* OptixBuildInputDisplacementMicromap::displacementMicromapUsageCounts

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

 indexingMode

OptixDisplacementMicromapArrayIndexingMode OptixBuildInputDisplacementMicromap::indexingMode

Indexing mode of triangle to displacement micromap array mapping.

 numDisplacementMicromapUsageCounts

unsigned int OptixBuildInputDisplacementMicromap::numDisplacementMicromapUsageCounts

 triangleFlagsBuffer

CUdeviceptr OptixBuildInputDisplacementMicromap::triangleFlagsBuffer

Optional per-triangle flags, uint8_t per triangle, possible values defined in enum OptixDisplacementMicromapTriangleFlags.

 triangleFlagsStrideInBytes

unsigned int OptixBuildInputDisplacementMicromap::triangleFlagsStrideInBytes

Stride in bytes for triangleFlags.

 vertexBiasAndScaleBuffer

CUdeviceptr OptixBuildInputDisplacementMicromap::vertexBiasAndScaleBuffer

Optional per-vertex bias (offset) along displacement direction and displacement direction scale.

 vertexBiasAndScaleFormat

OptixDisplacementMicromapBiasAndScaleFormat OptixBuildInputDisplacementMicromap::vertexBiasAndScaleFormat

Format of vertex bias and direction scale.

 vertexBiasAndScaleStrideInBytes

unsigned int OptixBuildInputDisplacementMicromap::vertexBiasAndScaleStrideInBytes

Stride in bytes for vertex bias and direction scale entries.

 vertexDirectionFormat

OptixDisplacementMicromapDirectionFormat OptixBuildInputDisplacementMicromap::vertexDirectionFormat

Format of displacement vectors.

 vertexDirectionsBuffer

CUdeviceptr OptixBuildInputDisplacementMicromap::vertexDirectionsBuffer

Per triangle-vertex displacement directions.

 vertexDirectionStrideInBytes

unsigned int OptixBuildInputDisplacementMicromap::vertexDirectionStrideInBytes

Stride between displacement vectors.