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

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

Static Public Member Functions

static bool equals (const Specification &a, const Specification &b)
 
static size_t hashCode (const Specification &s)
 

Detailed Description

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

For example,

typedef Table<GBuffer::Specification, shared_ptr<Shader>, GBuffer::Specification::SameFields, GBuffer::Specification::SameFields> ShaderCache;

Does not compare encoding or depthEncoding.

Member Function Documentation

◆ equals()

static bool G3D::GBuffer::Specification::SameFields::equals ( const Specification a,
const Specification b 
)
inlinestatic

◆ hashCode()

static size_t G3D::GBuffer::Specification::SameFields::hashCode ( const Specification s)
inlinestatic

Referenced by equals().


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