Support Forum       G3D Web Page     
Classes | Public Member Functions | Public Attributes | List of all members
G3D::GBuffer::Specification Class Reference

Classes

class  SameFields
 Can be used with G3D::Table as an Equals and Hash function for a GBuffer::Specification. More...
 

Public Member Functions

 Specification ()
 All fields for specific buffers default to nullptr. More...
 
virtual ~Specification ()
 
size_t hashCode () const
 
size_t memorySize () const
 Memory Size in Bytes. More...
 
bool operator!= (const Specification &other) const
 
Specificationoperator= (const Specification &other)
 
bool operator== (const Specification &other) const
 Are these two specifications exactly the same. More...
 

Public Attributes

int depth
 Number of layers in each texture. More...
 
DepthEncoding depthEncoding
 Reserved for future use–not currently supported. More...
 
Texture::Dimension dimension
 
Texture::Encoding encoding [Field::COUNT]
 Indexed by Fields. More...
 
bool genMipMaps = false
 
int numSamples
 Number of MSAA samples. More...
 

Constructor & Destructor Documentation

◆ ~Specification()

virtual G3D::GBuffer::Specification::~Specification ( )
inlinevirtual

◆ Specification()

G3D::GBuffer::Specification::Specification ( )

All fields for specific buffers default to nullptr.

In the future, more buffers may be added, which will also default to nullptr for backwards compatibility.

Member Function Documentation

◆ hashCode()

size_t G3D::GBuffer::Specification::hashCode ( ) const
inline

◆ memorySize()

size_t G3D::GBuffer::Specification::memorySize ( ) const
inline

Memory Size in Bytes.

◆ operator!=()

bool G3D::GBuffer::Specification::operator!= ( const Specification other) const
inline

◆ operator=()

Specification& G3D::GBuffer::Specification::operator= ( const Specification other)
inline

◆ operator==()

bool G3D::GBuffer::Specification::operator== ( const Specification other) const
inline

Are these two specifications exactly the same.

Member Data Documentation

◆ depth

int G3D::GBuffer::Specification::depth

Number of layers in each texture.

Default is 1

Referenced by hashCode(), operator=(), and operator==().

◆ depthEncoding

DepthEncoding G3D::GBuffer::Specification::depthEncoding

Reserved for future use–not currently supported.

Referenced by hashCode(), operator=(), and operator==().

◆ dimension

Texture::Dimension G3D::GBuffer::Specification::dimension

Referenced by hashCode(), operator=(), and operator==().

◆ encoding

Texture::Encoding G3D::GBuffer::Specification::encoding[Field::COUNT]

◆ genMipMaps

bool G3D::GBuffer::Specification::genMipMaps = false

Referenced by hashCode(), operator=(), and operator==().

◆ numSamples

int G3D::GBuffer::Specification::numSamples

Number of MSAA samples.


documentation generated on Wed Nov 24 2021 08:01:56 using doxygen 1.8.15