|
Blender V4.5
|
#include <eevee_material.hh>
Public Member Functions | |
| ShaderKey (GPUMaterial *gpumat, ::Material *blender_mat, eMaterialProbe probe_capture) | |
| uint64_t | hash () const |
| bool | operator< (const ShaderKey &k) const |
| bool | operator== (const ShaderKey &k) const |
Public Attributes | |
| GPUShader * | shader |
| uint64_t | options |
Key used to find the sub-pass that already renders objects with the same shader. This avoids the cost associated with shader switching. This is below the material binning. Should only include pipeline options that are not baked in the shader itself.
Definition at line 261 of file eevee_material.hh.
|
inline |
Definition at line 265 of file eevee_material.hh.
References Material::blend_flag, GPU_material_get_shader(), options, shader, and blender::eevee::shader_closure_bits_from_flag().
|
inline |
Definition at line 273 of file eevee_material.hh.
|
inline |
Definition at line 278 of file eevee_material.hh.
|
inline |
Definition at line 283 of file eevee_material.hh.
| uint64_t blender::eevee::ShaderKey::options |
Definition at line 263 of file eevee_material.hh.
Referenced by hash(), operator<(), operator==(), and ShaderKey().
| GPUShader* blender::eevee::ShaderKey::shader |
Definition at line 262 of file eevee_material.hh.
Referenced by hash(), operator<(), operator==(), and ShaderKey().