Blender V5.0
blender::eevee::MaterialKey Struct Reference

#include <eevee_material.hh>

Public Member Functions

 MaterialKey (::Material *mat_, eMaterialGeometry geometry, eMaterialPipeline pipeline, short visibility_flags)
uint64_t hash () const
bool operator== (const MaterialKey &k) const

Public Attributes

::Materialmat
uint64_t options

Detailed Description

Unique key to identify each material in the hash-map. This is above the shader binning.

Definition at line 230 of file eevee_material.hh.

Constructor & Destructor Documentation

◆ MaterialKey()

Member Function Documentation

◆ hash()

uint64_t blender::eevee::MaterialKey::hash ( ) const
inline

Definition at line 251 of file eevee_material.hh.

References mat, and options.

◆ operator==()

bool blender::eevee::MaterialKey::operator== ( const MaterialKey & k) const
inline

Definition at line 256 of file eevee_material.hh.

References mat, MaterialKey(), and options.

Member Data Documentation

◆ mat

::Material* blender::eevee::MaterialKey::mat

Definition at line 231 of file eevee_material.hh.

Referenced by hash(), MaterialKey(), and operator==().

◆ options

uint64_t blender::eevee::MaterialKey::options

Definition at line 232 of file eevee_material.hh.

Referenced by hash(), MaterialKey(), and operator==().


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