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

Go to the source code of this file.

Classes

struct  RTCBuildArguments
 

Typedefs

typedef
typedefRTC_NAMESPACE_BEGIN
struct RTCBVHTy * 
RTCBVH
 
typedef struct
RTCThreadLocalAllocatorTy * 
RTCThreadLocalAllocator
 
typedef void *(* RTCCreateNodeFunction )(RTCThreadLocalAllocator allocator, unsigned int childCount, void *userPtr)
 
typedef void(* RTCSetNodeChildrenFunction )(void *nodePtr, void **children, unsigned int childCount, void *userPtr)
 
typedef void(* RTCSetNodeBoundsFunction )(void *nodePtr, const struct RTCBounds **bounds, unsigned int childCount, void *userPtr)
 
typedef void *(* RTCCreateLeafFunction )(RTCThreadLocalAllocator allocator, const struct RTCBuildPrimitive *primitives, size_t primitiveCount, void *userPtr)
 
typedef void(* RTCSplitPrimitiveFunction )(const struct RTCBuildPrimitive *primitive, unsigned int dimension, float position, struct RTCBounds *leftBounds, struct RTCBounds *rightBounds, void *userPtr)
 

Enumerations

enum  RTCBuildFlags { RTC_BUILD_FLAG_NONE = 0, RTC_BUILD_FLAG_DYNAMIC = (1 << 0) }
 
enum  RTCBuildConstants { RTC_BUILD_MAX_PRIMITIVES_PER_LEAF = 32 }
 

Functions

struct RTC_ALIGN (32) RTCBuildPrimitive
 
RTC_FORCEINLINE struct
RTCBuildArguments 
rtcDefaultBuildArguments ()
 
RTC_API RTCBVH rtcNewBVH (RTCDevice device)
 
RTC_API voidrtcBuildBVH (const struct RTCBuildArguments *args)
 
RTC_API voidrtcThreadLocalAlloc (RTCThreadLocalAllocator allocator, size_t bytes, size_t align)
 
RTC_API void rtcRetainBVH (RTCBVH bvh)
 
RTC_API void rtcReleaseBVH (RTCBVH bvh)
 

Typedef Documentation

typedef typedefRTC_NAMESPACE_BEGIN struct RTCBVHTy* RTCBVH

Definition at line 11 of file rtcore_builder.h.

typedef void*(* RTCCreateLeafFunction)(RTCThreadLocalAllocator allocator, const struct RTCBuildPrimitive *primitives, size_t primitiveCount, void *userPtr)

Definition at line 35 of file rtcore_builder.h.

typedef void*(* RTCCreateNodeFunction)(RTCThreadLocalAllocator allocator, unsigned int childCount, void *userPtr)

Definition at line 26 of file rtcore_builder.h.

typedef void(* RTCSetNodeBoundsFunction)(void *nodePtr, const struct RTCBounds **bounds, unsigned int childCount, void *userPtr)

Definition at line 32 of file rtcore_builder.h.

typedef void(* RTCSetNodeChildrenFunction)(void *nodePtr, void **children, unsigned int childCount, void *userPtr)

Definition at line 29 of file rtcore_builder.h.

typedef void(* RTCSplitPrimitiveFunction)(const struct RTCBuildPrimitive *primitive, unsigned int dimension, float position, struct RTCBounds *leftBounds, struct RTCBounds *rightBounds, void *userPtr)

Definition at line 38 of file rtcore_builder.h.

typedef struct RTCThreadLocalAllocatorTy* RTCThreadLocalAllocator

Definition at line 23 of file rtcore_builder.h.

Enumeration Type Documentation

Enumerator
RTC_BUILD_MAX_PRIMITIVES_PER_LEAF 

Definition at line 47 of file rtcore_builder.h.

Enumerator
RTC_BUILD_FLAG_NONE 
RTC_BUILD_FLAG_DYNAMIC 

Definition at line 41 of file rtcore_builder.h.

Function Documentation

struct RTC_ALIGN ( 32  )

Definition at line 14 of file rtcore_builder.h.

RTC_API void* rtcBuildBVH ( const struct RTCBuildArguments args)
RTC_FORCEINLINE struct RTCBuildArguments rtcDefaultBuildArguments ( )

Definition at line 82 of file rtcore_builder.h.

RTC_API RTCBVH rtcNewBVH ( RTCDevice  device)
RTC_API void rtcReleaseBVH ( RTCBVH  bvh)
RTC_API void rtcRetainBVH ( RTCBVH  bvh)
RTC_API void* rtcThreadLocalAlloc ( RTCThreadLocalAllocator  allocator,
size_t  bytes,
size_t  align 
)