HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rtcore_device.h File Reference
#include "rtcore_common.h"
+ Include dependency graph for rtcore_device.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef
typedefRTC_NAMESPACE_BEGIN
struct RTCDeviceTy * 
RTCDevice
 
typedef void(* RTCErrorFunction )(void *userPtr, enum RTCError code, const char *str)
 
typedef bool(* RTCMemoryMonitorFunction )(void *ptr, ssize_t bytes, bool post)
 

Enumerations

enum  RTCDeviceProperty {
  RTC_DEVICE_PROPERTY_VERSION = 0, RTC_DEVICE_PROPERTY_VERSION_MAJOR = 1, RTC_DEVICE_PROPERTY_VERSION_MINOR = 2, RTC_DEVICE_PROPERTY_VERSION_PATCH = 3,
  RTC_DEVICE_PROPERTY_NATIVE_RAY4_SUPPORTED = 32, RTC_DEVICE_PROPERTY_NATIVE_RAY8_SUPPORTED = 33, RTC_DEVICE_PROPERTY_NATIVE_RAY16_SUPPORTED = 34, RTC_DEVICE_PROPERTY_RAY_STREAM_SUPPORTED = 35,
  RTC_DEVICE_PROPERTY_BACKFACE_CULLING_CURVES_ENABLED = 63, RTC_DEVICE_PROPERTY_RAY_MASK_SUPPORTED = 64, RTC_DEVICE_PROPERTY_BACKFACE_CULLING_ENABLED = 65, RTC_DEVICE_PROPERTY_FILTER_FUNCTION_SUPPORTED = 66,
  RTC_DEVICE_PROPERTY_IGNORE_INVALID_RAYS_ENABLED = 67, RTC_DEVICE_PROPERTY_COMPACT_POLYS_ENABLED = 68, RTC_DEVICE_PROPERTY_TRIANGLE_GEOMETRY_SUPPORTED = 96, RTC_DEVICE_PROPERTY_QUAD_GEOMETRY_SUPPORTED = 97,
  RTC_DEVICE_PROPERTY_SUBDIVISION_GEOMETRY_SUPPORTED = 98, RTC_DEVICE_PROPERTY_CURVE_GEOMETRY_SUPPORTED = 99, RTC_DEVICE_PROPERTY_USER_GEOMETRY_SUPPORTED = 100, RTC_DEVICE_PROPERTY_POINT_GEOMETRY_SUPPORTED = 101,
  RTC_DEVICE_PROPERTY_TASKING_SYSTEM = 128, RTC_DEVICE_PROPERTY_JOIN_COMMIT_SUPPORTED = 129, RTC_DEVICE_PROPERTY_PARALLEL_COMMIT_SUPPORTED = 130
}
 
enum  RTCError {
  RTC_ERROR_NONE = 0, RTC_ERROR_UNKNOWN = 1, RTC_ERROR_INVALID_ARGUMENT = 2, RTC_ERROR_INVALID_OPERATION = 3,
  RTC_ERROR_OUT_OF_MEMORY = 4, RTC_ERROR_UNSUPPORTED_CPU = 5, RTC_ERROR_CANCELLED = 6
}
 

Functions

RTC_API RTCDevice rtcNewDevice (const char *config)
 
RTC_API void rtcRetainDevice (RTCDevice device)
 
RTC_API void rtcReleaseDevice (RTCDevice device)
 
RTC_API ssize_t rtcGetDeviceProperty (RTCDevice device, enum RTCDeviceProperty prop)
 
RTC_API void rtcSetDeviceProperty (RTCDevice device, const enum RTCDeviceProperty prop, ssize_t value)
 
RTC_API enum RTCError rtcGetDeviceError (RTCDevice device)
 
RTC_API void rtcSetDeviceErrorFunction (RTCDevice device, RTCErrorFunction error, void *userPtr)
 
RTC_API void rtcSetDeviceMemoryMonitorFunction (RTCDevice device, RTCMemoryMonitorFunction memoryMonitor, void *userPtr)
 

Typedef Documentation

typedef typedefRTC_NAMESPACE_BEGIN struct RTCDeviceTy* RTCDevice

Definition at line 11 of file rtcore_device.h.

typedef void(* RTCErrorFunction)(void *userPtr, enum RTCError code, const char *str)

Definition at line 76 of file rtcore_device.h.

typedef bool(* RTCMemoryMonitorFunction)(void *ptr, ssize_t bytes, bool post)

Definition at line 82 of file rtcore_device.h.

Enumeration Type Documentation

Enumerator
RTC_DEVICE_PROPERTY_VERSION 
RTC_DEVICE_PROPERTY_VERSION_MAJOR 
RTC_DEVICE_PROPERTY_VERSION_MINOR 
RTC_DEVICE_PROPERTY_VERSION_PATCH 
RTC_DEVICE_PROPERTY_NATIVE_RAY4_SUPPORTED 
RTC_DEVICE_PROPERTY_NATIVE_RAY8_SUPPORTED 
RTC_DEVICE_PROPERTY_NATIVE_RAY16_SUPPORTED 
RTC_DEVICE_PROPERTY_RAY_STREAM_SUPPORTED 
RTC_DEVICE_PROPERTY_BACKFACE_CULLING_CURVES_ENABLED 
RTC_DEVICE_PROPERTY_RAY_MASK_SUPPORTED 
RTC_DEVICE_PROPERTY_BACKFACE_CULLING_ENABLED 
RTC_DEVICE_PROPERTY_FILTER_FUNCTION_SUPPORTED 
RTC_DEVICE_PROPERTY_IGNORE_INVALID_RAYS_ENABLED 
RTC_DEVICE_PROPERTY_COMPACT_POLYS_ENABLED 
RTC_DEVICE_PROPERTY_TRIANGLE_GEOMETRY_SUPPORTED 
RTC_DEVICE_PROPERTY_QUAD_GEOMETRY_SUPPORTED 
RTC_DEVICE_PROPERTY_SUBDIVISION_GEOMETRY_SUPPORTED 
RTC_DEVICE_PROPERTY_CURVE_GEOMETRY_SUPPORTED 
RTC_DEVICE_PROPERTY_USER_GEOMETRY_SUPPORTED 
RTC_DEVICE_PROPERTY_POINT_GEOMETRY_SUPPORTED 
RTC_DEVICE_PROPERTY_TASKING_SYSTEM 
RTC_DEVICE_PROPERTY_JOIN_COMMIT_SUPPORTED 
RTC_DEVICE_PROPERTY_PARALLEL_COMMIT_SUPPORTED 

Definition at line 23 of file rtcore_device.h.

enum RTCError
Enumerator
RTC_ERROR_NONE 
RTC_ERROR_UNKNOWN 
RTC_ERROR_INVALID_ARGUMENT 
RTC_ERROR_INVALID_OPERATION 
RTC_ERROR_OUT_OF_MEMORY 
RTC_ERROR_UNSUPPORTED_CPU 
RTC_ERROR_CANCELLED 

Definition at line 61 of file rtcore_device.h.

Function Documentation

RTC_API enum RTCError rtcGetDeviceError ( RTCDevice  device)
RTC_API ssize_t rtcGetDeviceProperty ( RTCDevice  device,
enum RTCDeviceProperty  prop 
)
RTC_API RTCDevice rtcNewDevice ( const char *  config)
RTC_API void rtcReleaseDevice ( RTCDevice  device)
RTC_API void rtcRetainDevice ( RTCDevice  device)
RTC_API void rtcSetDeviceErrorFunction ( RTCDevice  device,
RTCErrorFunction  error,
void userPtr 
)
RTC_API void rtcSetDeviceMemoryMonitorFunction ( RTCDevice  device,
RTCMemoryMonitorFunction  memoryMonitor,
void userPtr 
)
RTC_API void rtcSetDeviceProperty ( RTCDevice  device,
const enum RTCDeviceProperty  prop,
ssize_t  value 
)