Blender V5.0
blender::eevee::MaterialModule Class Reference

#include <eevee_material.hh>

Public Member Functions

ShaderGroups default_materials_load_async ()
ShaderGroups default_materials_wait_ready ()

Public Attributes

::Materialdiffuse_mat
::Materialmetallic_mat
::Materialdefault_surface
::Materialdefault_volume
::Materialmaterial_override = nullptr
int64_t queued_shaders_count = 0
int64_t queued_textures_count = 0
int64_t queued_optimize_shaders_count = 0

Material

 MaterialModule (Instance &inst)
 ~MaterialModule ()
void begin_sync ()
void end_sync ()
MaterialArraymaterial_array_get (Object *ob, bool has_motion)
Materialmaterial_get (Object *ob, bool has_motion, int mat_nr, eMaterialGeometry geometry_type)

Detailed Description

Definition at line 333 of file eevee_material.hh.

Constructor & Destructor Documentation

◆ MaterialModule()

◆ ~MaterialModule()

blender::eevee::MaterialModule::~MaterialModule ( )

Member Function Documentation

◆ begin_sync()

void blender::eevee::MaterialModule::begin_sync ( )

◆ default_materials_load_async()

ShaderGroups blender::eevee::MaterialModule::default_materials_load_async ( )
inline

Definition at line 379 of file eevee_material.hh.

◆ default_materials_wait_ready()

ShaderGroups blender::eevee::MaterialModule::default_materials_wait_ready ( )
inline

Definition at line 383 of file eevee_material.hh.

◆ end_sync()

void blender::eevee::MaterialModule::end_sync ( )

◆ material_array_get()

MaterialArray & blender::eevee::MaterialModule::material_array_get ( Object * ob,
bool has_motion )

◆ material_get()

Material & blender::eevee::MaterialModule::material_get ( Object * ob,
bool has_motion,
int mat_nr,
eMaterialGeometry geometry_type )

Returned Material references are valid until the next call to this function or material_array_get().

Definition at line 501 of file eevee_material.cc.

References material_get(), and material_override.

Referenced by material_get().

Member Data Documentation

◆ default_surface

::Material* blender::eevee::MaterialModule::default_surface

Definition at line 337 of file eevee_material.hh.

Referenced by MaterialModule(), and ~MaterialModule().

◆ default_volume

::Material* blender::eevee::MaterialModule::default_volume

Definition at line 338 of file eevee_material.hh.

Referenced by MaterialModule(), and ~MaterialModule().

◆ diffuse_mat

::Material* blender::eevee::MaterialModule::diffuse_mat

Definition at line 335 of file eevee_material.hh.

Referenced by MaterialModule(), and ~MaterialModule().

◆ material_override

::Material* blender::eevee::MaterialModule::material_override = nullptr

Definition at line 340 of file eevee_material.hh.

Referenced by begin_sync(), material_array_get(), and material_get().

◆ metallic_mat

::Material* blender::eevee::MaterialModule::metallic_mat

Definition at line 336 of file eevee_material.hh.

Referenced by MaterialModule(), and ~MaterialModule().

◆ queued_optimize_shaders_count

int64_t blender::eevee::MaterialModule::queued_optimize_shaders_count = 0

Definition at line 344 of file eevee_material.hh.

Referenced by begin_sync().

◆ queued_shaders_count

int64_t blender::eevee::MaterialModule::queued_shaders_count = 0

Definition at line 342 of file eevee_material.hh.

Referenced by begin_sync().

◆ queued_textures_count

int64_t blender::eevee::MaterialModule::queued_textures_count = 0

Definition at line 343 of file eevee_material.hh.

Referenced by begin_sync().


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