Blender  V3.3
Public Member Functions | Public Attributes | List of all members
blender::eevee::MaterialKey Struct Reference

#include <eevee_material.hh>

Public Member Functions

 MaterialKey (::Material *mat_, eMaterialGeometry geometry, eMaterialPipeline surface_pipeline)
 
uint64_t hash () const
 
bool operator< (const MaterialKey &k) 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.

Definition at line 110 of file eevee_material.hh.

Constructor & Destructor Documentation

◆ MaterialKey()

blender::eevee::MaterialKey::MaterialKey ( ::Material mat_,
eMaterialGeometry  geometry,
eMaterialPipeline  surface_pipeline 
)
inline

Definition at line 114 of file eevee_material.hh.

References options, and blender::eevee::shader_uuid_from_material_type().

Member Function Documentation

◆ hash()

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

Definition at line 120 of file eevee_material.hh.

References BLI_assert, mat, and options.

◆ operator<()

bool blender::eevee::MaterialKey::operator< ( const MaterialKey k) const
inline

Definition at line 126 of file eevee_material.hh.

References mat, and options.

◆ operator==()

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

Definition at line 131 of file eevee_material.hh.

References mat, and options.

Member Data Documentation

◆ mat

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

Definition at line 111 of file eevee_material.hh.

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

◆ options

uint64_t blender::eevee::MaterialKey::options

Definition at line 112 of file eevee_material.hh.

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


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