Fermat
Public Types | Public Methods | Public Members | List of all members
WavefrontQueue Struct Reference
Inheritance diagram for WavefrontQueue:
RayWavefrontQueue

Public Types

typedef uint32 Entry
 

Public Methods

FERMAT_HOST_DEVICE WavefrontQueue ()
 
FERMAT_HOST_DEVICE void setup (const QueueDescriptor &_desc, const uint32 _capacity)
 
FERMAT_HOST_DEVICE uint32 byte_size () const
 
FERMAT_HOST_DEVICE void alloc (uint8 *_ptr, uint32 *_size)
 
template<uint32 m, typename T >
FERMAT_HOST_DEVICE T * member_base () const
 
template<uint32 m, typename T >
FERMAT_HOST_DEVICE const T & member (const uint32 slot) const
 
template<uint32 m, typename T >
FERMAT_HOST_DEVICE T & member (const uint32 slot)
 
FERMAT_DEVICE uint32 append ()
 
FERMAT_HOST_DEVICE void set_size (const uint32 _size)
 

Public Members

uint8 * ptr
 
uint32 * size
 
uint32 capacity
 
uint32 offsets [16]
 

Constructor & Destructor Documentation

◆ WavefrontQueue()

FERMAT_HOST_DEVICE WavefrontQueue::WavefrontQueue ( )
inline

constructor

Member Function Documentation

◆ alloc()

FERMAT_HOST_DEVICE void WavefrontQueue::alloc ( uint8 *  _ptr,
uint32 *  _size 
)
inline

setup the baking storage

◆ append()

FERMAT_DEVICE uint32 WavefrontQueue::append ( )
inline

return a free slot

◆ byte_size()

FERMAT_HOST_DEVICE uint32 WavefrontQueue::byte_size ( ) const
inline

return the element size

◆ member() [1/2]

template<uint32 m, typename T >
FERMAT_HOST_DEVICE const T& WavefrontQueue::member ( const uint32  slot) const
inline

return the offset of the i-th entry

◆ member() [2/2]

template<uint32 m, typename T >
FERMAT_HOST_DEVICE T& WavefrontQueue::member ( const uint32  slot)
inline

return the offset of the i-th entry

◆ member_base()

template<uint32 m, typename T >
FERMAT_HOST_DEVICE T* WavefrontQueue::member_base ( ) const
inline

return the offset of the i-th entry

◆ set_size()

FERMAT_HOST_DEVICE void WavefrontQueue::set_size ( const uint32  _size)
inline

explicitly write the size

◆ setup()

FERMAT_HOST_DEVICE void WavefrontQueue::setup ( const QueueDescriptor _desc,
const uint32  _capacity 
)
inline

setup the descriptor


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