#include <optix_types.h>
Optional displacement part of a triangle array input.
CUdeviceptr OptixBuildInputDisplacementMicromap::displacementMicromapArray |
Address to a displacement micromap array used by this build input array. Set to NULL to disable DMs for this input.
CUdeviceptr OptixBuildInputDisplacementMicromap::displacementMicromapIndexBuffer |
int16 or int32 buffer specifying which displacement micromap index to use for each triangle. Only valid if displacementMicromapArray != NULL.
unsigned int OptixBuildInputDisplacementMicromap::displacementMicromapIndexOffset |
Constant offset to displacement micromap indices as specified by the displacement micromap index buffer.
unsigned int OptixBuildInputDisplacementMicromap::displacementMicromapIndexSizeInBytes |
2 or 4 (16 or 32 bit)
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.
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.
OptixDisplacementMicromapArrayIndexingMode OptixBuildInputDisplacementMicromap::indexingMode |
Indexing mode of triangle to displacement micromap array mapping.
unsigned int OptixBuildInputDisplacementMicromap::numDisplacementMicromapUsageCounts |
Number of OptixDisplacementMicromapUsageCount entries.
CUdeviceptr OptixBuildInputDisplacementMicromap::triangleFlagsBuffer |
Optional per-triangle flags, uint8_t per triangle, possible values defined in enum OptixDisplacementMicromapTriangleFlags.
unsigned int OptixBuildInputDisplacementMicromap::triangleFlagsStrideInBytes |
Stride in bytes for triangleFlags.
CUdeviceptr OptixBuildInputDisplacementMicromap::vertexBiasAndScaleBuffer |
Optional per-vertex bias (offset) along displacement direction and displacement direction scale.
OptixDisplacementMicromapBiasAndScaleFormat OptixBuildInputDisplacementMicromap::vertexBiasAndScaleFormat |
Format of vertex bias and direction scale.
unsigned int OptixBuildInputDisplacementMicromap::vertexBiasAndScaleStrideInBytes |
Stride in bytes for vertex bias and direction scale entries.
OptixDisplacementMicromapDirectionFormat OptixBuildInputDisplacementMicromap::vertexDirectionFormat |
Format of displacement vectors.
CUdeviceptr OptixBuildInputDisplacementMicromap::vertexDirectionsBuffer |
Per triangle-vertex displacement directions.
unsigned int OptixBuildInputDisplacementMicromap::vertexDirectionStrideInBytes |
Stride between displacement vectors.