HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nanovdb::Rgba8 Class Reference

8-bit red, green, blue, alpha packed into 32 bit unsigned int More...

#include <NanoVDB.h>

Public Types

using ValueType = uint8_t
 

Public Member Functions

 Rgba8 (const Rgba8 &)=default
 Default copy constructor. More...
 
 Rgba8 (Rgba8 &&)=default
 Default move constructor. More...
 
Rgba8operator= (Rgba8 &&)=default
 Default move assignment operator. More...
 
Rgba8operator= (const Rgba8 &)=default
 Default copy assignment operator. More...
 
__hostdev__ Rgba8 ()
 Default ctor initializes all channels to zero. More...
 
__hostdev__ Rgba8 (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255u)
 integer r,g,b,a ctor where alpha channel defaults to opaque More...
 

Static Public Attributes

static const int SIZE = 4
 

Detailed Description

8-bit red, green, blue, alpha packed into 32 bit unsigned int

Definition at line 1840 of file NanoVDB.h.

Member Typedef Documentation

using nanovdb::Rgba8::ValueType = uint8_t

Definition at line 1850 of file NanoVDB.h.

Constructor & Destructor Documentation

nanovdb::Rgba8::Rgba8 ( const Rgba8 )
default

Default copy constructor.

nanovdb::Rgba8::Rgba8 ( Rgba8 &&  )
default

Default move constructor.

__hostdev__ nanovdb::Rgba8::Rgba8 ( )
inline

Default ctor initializes all channels to zero.

Definition at line 1867 of file NanoVDB.h.

__hostdev__ nanovdb::Rgba8::Rgba8 ( uint8_t  r,
uint8_t  g,
uint8_t  b,
uint8_t  a = 255u 
)
inline

integer r,g,b,a ctor where alpha channel defaults to opaque

Note
all values should be in the range 0u to 255u

Definition at line 1875 of file NanoVDB.h.

Member Function Documentation

Rgba8& nanovdb::Rgba8::operator= ( Rgba8 &&  )
default

Default move assignment operator.

Returns
non-const reference to this instance
Rgba8& nanovdb::Rgba8::operator= ( const Rgba8 )
default

Default copy assignment operator.

Returns
non-const reference to this instance

Member Data Documentation

uint8_t nanovdb::Rgba8::c[4]

Definition at line 1844 of file NanoVDB.h.

uint32_t nanovdb::Rgba8::packed

Definition at line 1845 of file NanoVDB.h.

const int nanovdb::Rgba8::SIZE = 4
static

Definition at line 1849 of file NanoVDB.h.


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