XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGALHitGroupBindingMode Struct Reference

This describes the hit group binding mode used by the top level acceleration structure. More...

#include <TopLevelAS.h>

Inheritance diagram for xiiGALHitGroupBindingMode:
[legend]

Public Types

enum  Enum : StorageType {
  PerGeometry = 0U , PerInstance , PerTopLevelAccelerationStructure , UserDefined ,
  ENUM_COUNT , Default = PerGeometry
}
 
using StorageType = xiiUInt8
 

Detailed Description

This describes the hit group binding mode used by the top level acceleration structure.

Member Enumeration Documentation

◆ Enum

enum xiiGALHitGroupBindingMode::Enum : StorageType
Enumerator
PerGeometry 

Each geometry in every instance may use a unique hit shader group. In this mode, space is reserved for each geometry in every instance in the top level acceleration structure and uses the most memory.

PerInstance 

Each instance may use a unique hit shader group. In this mode, one slot is reserved for each instance irrespective of how many geometries it contains, so it uses less memory.

PerTopLevelAccelerationStructure 

All instances in each top level acceleration structure will use the same hit group. In this mode, a single slot is reserved for one hit group for each top level acceleration structure.

UserDefined 

The user must specify the contribution to the hit group index, and only bind hit groups by index.


The documentation for this struct was generated from the following file: