DriveWorks SDK Reference

| 0.6.67 Release

Core Types

Detailed Description

Defines of POD types, timestamps, and trivial data types.

Data Structures

struct  dwLine3f
 Defines a line segment. More...
 
struct  dwMatrix34f
 Defines a 3x4 matrix of floating point numbers (column major). More...
 
struct  dwMatrix3d
 Defines a 3x3 matrix of double floating point numbers. More...
 
struct  dwTransformation2D
 Defines a 3x3 matrix of floating point numbers. More...
 
struct  dwTransformation
 Defines a 4x4 matrix of floating point numbers (column major). More...
 
struct  dwPolyline3f
 Defines a polyline. More...
 
struct  dwRect
 Defines a rectangle. More...
 
struct  dwRectf
 
struct  dwVector2f
 Defines a two-element floating-point vector. More...
 
struct  dwVector2i
 Defines a two-element integer vector. More...
 
struct  dwVector2ui
 Defines a two-element unsigned-integer vector. More...
 
struct  dwVector3d
 Defines a three-element double-precision floating point vector. More...
 
struct  dwVector3f
 Defines a three-element floating-point vector. More...
 
struct  dwVector3ui
 Defines a three-element unsigned-integer vector. More...
 
struct  dwVector4f
 

Macros

#define DW_FALSE   0u
 
#define DW_NO_CALLBACK   NULL
 
#define DW_NULL_HANDLE   NULL
 
#define DW_TRUE   1u
 

Typedefs

typedef uint8_t dwBool
 
typedef dwRect dwBox2D
 
typedef dwRectf dwBox2Df
 
typedef uint64_t dwTime_t
 Specifies a timestamp unit, in microseconds. More...
 
typedef __half_raw float16_t
 
typedef float float32_t
 Specifies POD types. More...
 
typedef double float64_t
 

Enumerations

enum  dwGPUDeviceType {
  DW_GPU_DEVICE_DISCRETE = 0,
  DW_GPU_DEVICE_INTEGRATED = 1
}
 GPU device type defintions. More...
 
enum  dwTrivialDataType {
  DW_TYPE_UNKNOWN = 0,
  DW_TYPE_BOOL = 1 << 1,
  DW_TYPE_INT8 = 1 << 2,
  DW_TYPE_INT16 = 1 << 3,
  DW_TYPE_INT32 = 1 << 4,
  DW_TYPE_INT64 = 1 << 5,
  DW_TYPE_UINT8 = 1 << 6,
  DW_TYPE_UINT16 = 1 << 7,
  DW_TYPE_UINT32 = 1 << 8,
  DW_TYPE_UINT64 = 1 << 9,
  DW_TYPE_FLOAT32 = 1 << 10,
  DW_TYPE_FLOAT64 = 1 << 11,
  DW_TYPE_FLOAT16 = 1 << 12
}
 Specifies a type indicator of the underlying trivial data type. More...
 

Functions

DW_API_PUBLIC size_t dwSizeOf (dwTrivialDataType type)
 

Variables

static const dwTime_t DW_TIMEOUT_INFINITE = UINT64_MAX
 Special value of timestamp which means infinitely long duration. More...
 

Data Structure Documentation

◆ dwLine3f

struct dwLine3f
Data Fields
dwVector3f p[2] p[0] start, p[1] end

◆ dwMatrix34f

struct dwMatrix34f
Data Fields
float32_t array[3 *4]

◆ dwMatrix3d

struct dwMatrix3d
Data Fields
float64_t array[3 *3]

◆ dwMatrix3f

struct dwMatrix3f
Data Fields
float32_t array[3 *3]

◆ dwMatrix4f

struct dwMatrix4f
Data Fields
float32_t array[4 *4]

◆ dwPolyline3f

struct dwPolyline3f
Data Fields
uint32_t pointCount number of points.
const dwVector3f * points pointer to the first element in the container.

◆ dwRect

struct dwRect
Data Fields
int32_t height Rectangle height.
int32_t width Rectangle width.
int32_t x x coordinate.
int32_t y y coordinate.

◆ dwRectf

struct dwRectf
Data Fields
float32_t height Rectangle height.
float32_t width Rectangle width.
float32_t x Specifies the x coordinate.
float32_t y Specifies the y coordinate.

◆ dwVector2f

struct dwVector2f
Data Fields
float32_t x
float32_t y

◆ dwVector2i

struct dwVector2i
Data Fields
int32_t x
int32_t y

◆ dwVector2ui

struct dwVector2ui
Data Fields
uint32_t x
uint32_t y

◆ dwVector3d

struct dwVector3d
Data Fields
float64_t x
float64_t y
float64_t z

◆ dwVector3f

struct dwVector3f
Data Fields
float32_t x
float32_t y
float32_t z

◆ dwVector3ui

struct dwVector3ui
Data Fields
uint32_t x
uint32_t y
uint32_t z

◆ dwVector4f

struct dwVector4f
Data Fields
float32_t w
float32_t x
float32_t y
float32_t z

Macro Definition Documentation

◆ DW_FALSE

#define DW_FALSE   0u

Definition at line 99 of file Types.h.

◆ DW_NO_CALLBACK

#define DW_NO_CALLBACK   NULL

Definition at line 96 of file Types.h.

◆ DW_NULL_HANDLE

#define DW_NULL_HANDLE   NULL

Definition at line 95 of file Types.h.

◆ DW_TRUE

#define DW_TRUE   1u

Definition at line 98 of file Types.h.

Typedef Documentation

◆ dwBool

typedef uint8_t dwBool

Definition at line 79 of file Types.h.

◆ dwBox2D

typedef dwRect dwBox2D

Definition at line 173 of file Types.h.

◆ dwBox2Df

typedef dwRectf dwBox2Df

Definition at line 174 of file Types.h.

◆ dwTime_t

typedef uint64_t dwTime_t

Specifies a timestamp unit, in microseconds.

Definition at line 89 of file Types.h.

◆ float16_t

typedef __half_raw float16_t

Definition at line 84 of file Types.h.

◆ float32_t

typedef float float32_t

Specifies POD types.

Definition at line 77 of file Types.h.

◆ float64_t

typedef double float64_t

Definition at line 78 of file Types.h.

Enumeration Type Documentation

◆ dwGPUDeviceType

GPU device type defintions.

Only applicable on vibrante based platforms. On x86 platforms, the GPU is considered to be of discrete type always.

Enumerator
DW_GPU_DEVICE_DISCRETE 
DW_GPU_DEVICE_INTEGRATED 

Definition at line 144 of file Types.h.

◆ dwTrivialDataType

Specifies a type indicator of the underlying trivial data type.

Enumerator
DW_TYPE_UNKNOWN 
DW_TYPE_BOOL 
DW_TYPE_INT8 
DW_TYPE_INT16 
DW_TYPE_INT32 
DW_TYPE_INT64 
DW_TYPE_UINT8 
DW_TYPE_UINT16 
DW_TYPE_UINT32 
DW_TYPE_UINT64 
DW_TYPE_FLOAT32 
DW_TYPE_FLOAT64 
DW_TYPE_FLOAT16 

Definition at line 104 of file Types.h.

Function Documentation

◆ dwSizeOf()

DW_API_PUBLIC size_t dwSizeOf ( dwTrivialDataType  type)

Variable Documentation

◆ DW_TIMEOUT_INFINITE

const dwTime_t DW_TIMEOUT_INFINITE = UINT64_MAX
static

Special value of timestamp which means infinitely long duration.

Definition at line 93 of file Types.h.