Path Tracing
Loading...
Searching...
No Matches
DeviceRef Class Reference

#include <oidn.hpp>

Public Member Functions

 DeviceRef ()
 DeviceRef (OIDNDevice handle)
 DeviceRef (const DeviceRef &other)
 DeviceRef (DeviceRef &&other) noexcept
DeviceRef & operator= (const DeviceRef &other)
DeviceRef & operator= (DeviceRef &&other) noexcept
DeviceRef & operator= (OIDNDevice other)
 ~DeviceRef ()
const OIDNDevice & getHandle () const
 operator bool () const
void release ()
void set (const char *name, bool value)
void set (const char *name, int value)
void set (const char *name, unsigned int value)
template<typename T>
T get (const char *name) const
void setErrorFunction (ErrorFunction func, void *userPtr=nullptr)
Error getError ()
Error getError (const char *&outMessage)
void commit ()
void sync ()
BufferRef newBuffer (size_t byteSize) const
BufferRef newBuffer (size_t byteSize, Storage storage) const
BufferRef newBuffer (void *ptr, size_t byteSize) const
BufferRef newBuffer (ExternalMemoryTypeFlags fdType, int fd, size_t byteSize) const
BufferRef newBuffer (ExternalMemoryTypeFlags handleType, void *handle, const void *name, size_t byteSize) const
SemaphoreRef newSemaphore (ExternalSemaphoreTypeFlags fdType, int fd) const
SemaphoreRef newSemaphore (ExternalSemaphoreTypeFlags handleType, void *handle, const void *name) const
void signalSemaphoreAsync (const SemaphoreRef &semaphore) const
void signalSemaphoreAsync (const SemaphoreRef &semaphore, uint64_t value) const
void signalSemaphoresAsync (const std::vector< SemaphoreRef > &semaphores) const
void signalSemaphoresAsync (const std::vector< SemaphoreRef > &semaphores, const std::vector< uint64_t > &values) const
void waitSemaphoreAsync (const SemaphoreRef &semaphore) const
void waitSemaphoreAsync (const SemaphoreRef &semaphore, uint64_t value) const
void waitSemaphoreAsync (const SemaphoreRef &semaphore, uint64_t value, uint32_t timeoutMs) const
void waitSemaphoresAsync (const std::vector< SemaphoreRef > &semaphores) const
void waitSemaphoresAsync (const std::vector< SemaphoreRef > &semaphores, const std::vector< uint64_t > &values) const
void waitSemaphoresAsync (const std::vector< SemaphoreRef > &semaphores, const std::vector< uint64_t > &values, const std::vector< uint32_t > &timeoutsMs) const
FilterRef newFilter (const char *type) const
template<>
bool get (const char *name) const
template<>
int get (const char *name) const
template<>
unsigned int get (const char *name) const
template<>
DeviceType get (const char *name) const
template<>
ExternalMemoryTypeFlags get (const char *name) const

Constructor & Destructor Documentation

◆ DeviceRef() [1/4]

DeviceRef::DeviceRef ( )
inline

◆ DeviceRef() [2/4]

DeviceRef::DeviceRef ( OIDNDevice handle)
inline

◆ DeviceRef() [3/4]

DeviceRef::DeviceRef ( const DeviceRef & other)
inline

◆ DeviceRef() [4/4]

DeviceRef::DeviceRef ( DeviceRef && other)
inlinenoexcept

◆ ~DeviceRef()

DeviceRef::~DeviceRef ( )
inline

Member Function Documentation

◆ commit()

void DeviceRef::commit ( )
inline

◆ get() [1/6]

template<>
ExternalMemoryTypeFlags DeviceRef::get ( const char * name) const
inline

◆ get() [2/6]

template<>
DeviceType DeviceRef::get ( const char * name) const
inline

◆ get() [3/6]

template<>
unsigned int DeviceRef::get ( const char * name) const
inline

◆ get() [4/6]

template<>
int DeviceRef::get ( const char * name) const
inline

◆ get() [5/6]

template<>
bool DeviceRef::get ( const char * name) const
inline

◆ get() [6/6]

template<typename T>
T DeviceRef::get ( const char * name) const

◆ getError() [1/2]

Error DeviceRef::getError ( )
inline

◆ getError() [2/2]

Error DeviceRef::getError ( const char *& outMessage)
inline

◆ getHandle()

const OIDNDevice & DeviceRef::getHandle ( ) const
inline

◆ newBuffer() [1/5]

BufferRef DeviceRef::newBuffer ( ExternalMemoryTypeFlags fdType,
int fd,
size_t byteSize ) const
inline

◆ newBuffer() [2/5]

BufferRef DeviceRef::newBuffer ( ExternalMemoryTypeFlags handleType,
void * handle,
const void * name,
size_t byteSize ) const
inline

◆ newBuffer() [3/5]

BufferRef DeviceRef::newBuffer ( size_t byteSize) const
inline

◆ newBuffer() [4/5]

BufferRef DeviceRef::newBuffer ( size_t byteSize,
Storage storage ) const
inline

◆ newBuffer() [5/5]

BufferRef DeviceRef::newBuffer ( void * ptr,
size_t byteSize ) const
inline

◆ newFilter()

FilterRef DeviceRef::newFilter ( const char * type) const
inline

◆ newSemaphore() [1/2]

SemaphoreRef DeviceRef::newSemaphore ( ExternalSemaphoreTypeFlags fdType,
int fd ) const
inline

◆ newSemaphore() [2/2]

SemaphoreRef DeviceRef::newSemaphore ( ExternalSemaphoreTypeFlags handleType,
void * handle,
const void * name ) const
inline

◆ operator bool()

DeviceRef::operator bool ( ) const
inline

◆ operator=() [1/3]

DeviceRef & DeviceRef::operator= ( const DeviceRef & other)
inline

◆ operator=() [2/3]

DeviceRef & DeviceRef::operator= ( DeviceRef && other)
inlinenoexcept

◆ operator=() [3/3]

DeviceRef & DeviceRef::operator= ( OIDNDevice other)
inline

◆ release()

void DeviceRef::release ( )
inline

◆ set() [1/3]

void DeviceRef::set ( const char * name,
bool value )
inline

◆ set() [2/3]

void DeviceRef::set ( const char * name,
int value )
inline

◆ set() [3/3]

void DeviceRef::set ( const char * name,
unsigned int value )
inline

◆ setErrorFunction()

void DeviceRef::setErrorFunction ( ErrorFunction func,
void * userPtr = nullptr )
inline

◆ signalSemaphoreAsync() [1/2]

void DeviceRef::signalSemaphoreAsync ( const SemaphoreRef & semaphore) const
inline

◆ signalSemaphoreAsync() [2/2]

void DeviceRef::signalSemaphoreAsync ( const SemaphoreRef & semaphore,
uint64_t value ) const
inline

◆ signalSemaphoresAsync() [1/2]

void DeviceRef::signalSemaphoresAsync ( const std::vector< SemaphoreRef > & semaphores) const
inline

◆ signalSemaphoresAsync() [2/2]

void DeviceRef::signalSemaphoresAsync ( const std::vector< SemaphoreRef > & semaphores,
const std::vector< uint64_t > & values ) const
inline

◆ sync()

void DeviceRef::sync ( )
inline

◆ waitSemaphoreAsync() [1/3]

void DeviceRef::waitSemaphoreAsync ( const SemaphoreRef & semaphore) const
inline

◆ waitSemaphoreAsync() [2/3]

void DeviceRef::waitSemaphoreAsync ( const SemaphoreRef & semaphore,
uint64_t value ) const
inline

◆ waitSemaphoreAsync() [3/3]

void DeviceRef::waitSemaphoreAsync ( const SemaphoreRef & semaphore,
uint64_t value,
uint32_t timeoutMs ) const
inline

◆ waitSemaphoresAsync() [1/3]

void DeviceRef::waitSemaphoresAsync ( const std::vector< SemaphoreRef > & semaphores) const
inline

◆ waitSemaphoresAsync() [2/3]

void DeviceRef::waitSemaphoresAsync ( const std::vector< SemaphoreRef > & semaphores,
const std::vector< uint64_t > & values ) const
inline

◆ waitSemaphoresAsync() [3/3]

void DeviceRef::waitSemaphoresAsync ( const std::vector< SemaphoreRef > & semaphores,
const std::vector< uint64_t > & values,
const std::vector< uint32_t > & timeoutsMs ) const
inline

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