triro 1.3.0
A Python Ray-Mesh Intersector in OptiX
Loading...
Searching...
No Matches
sbtdef.h File Reference
#include "device_types.h"
#include "optix_types.h"
#include "type.h"
#include <string>
#include <tuple>
Include dependency graph for sbtdef.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SBTRecord< T >
 

Macros

#define PRG_RG   1
 
#define PRG_IS   1 << 1
 
#define PRG_AH   1 << 2
 
#define PRG_CH   1 << 3
 
#define PRG_MS   1 << 4
 
#define PRG_DC   1 << 5
 
#define PRG_CC   1 << 6
 
#define PRG_EX   1 << 7
 

Typedefs

using ProgramMask = int
 
using SBTRecordEmpty = SBTRecord< void * >
 

Enumerations

enum  SBTType {
  INTERSECTS_ANY , INTERSECTS_FIRST , INTERSECTS_CLOSEST , INTERSECTS_COUNT ,
  INTERSECTS_LOCATION , count
}
 

Variables

const std::tuple< std::string, ProgramMaskprogramInfos []
 

Macro Definition Documentation

◆ PRG_AH

#define PRG_AH   1 << 2

Definition at line 25 of file sbtdef.h.

◆ PRG_CC

#define PRG_CC   1 << 6

Definition at line 33 of file sbtdef.h.

◆ PRG_CH

#define PRG_CH   1 << 3

Definition at line 27 of file sbtdef.h.

◆ PRG_DC

#define PRG_DC   1 << 5

Definition at line 31 of file sbtdef.h.

◆ PRG_EX

#define PRG_EX   1 << 7

Definition at line 35 of file sbtdef.h.

◆ PRG_IS

#define PRG_IS   1 << 1

Definition at line 23 of file sbtdef.h.

◆ PRG_MS

#define PRG_MS   1 << 4

Definition at line 29 of file sbtdef.h.

◆ PRG_RG

#define PRG_RG   1

Definition at line 21 of file sbtdef.h.

Typedef Documentation

◆ ProgramMask

using ProgramMask = int

Definition at line 19 of file sbtdef.h.

◆ SBTRecordEmpty

using SBTRecordEmpty = SBTRecord<void *>

Definition at line 50 of file sbtdef.h.

Enumeration Type Documentation

◆ SBTType

enum SBTType
Enumerator
INTERSECTS_ANY 
INTERSECTS_FIRST 
INTERSECTS_CLOSEST 
INTERSECTS_COUNT 
INTERSECTS_LOCATION 
count 

Definition at line 9 of file sbtdef.h.

Variable Documentation

◆ programInfos

const std::tuple<std::string, ProgramMask> programInfos[]
Initial value:
= {
{"intersectsAny", PRG_RG | PRG_AH | PRG_MS},
{"intersectsFirst", PRG_RG | PRG_CH | PRG_MS},
{"intersectsClosest", PRG_RG | PRG_CH | PRG_MS},
{"intersectsCount", PRG_RG | PRG_AH},
{"intersectsLocation", PRG_RG | PRG_AH}}
#define PRG_RG
Definition sbtdef.h:21
#define PRG_AH
Definition sbtdef.h:25
#define PRG_MS
Definition sbtdef.h:29
#define PRG_CH
Definition sbtdef.h:27

Definition at line 37 of file sbtdef.h.