Rebel Fork Framework
Urho3D::BatchStateLookupKey Struct Reference

#include <Urho3D/RenderPipeline/BatchStateCache.h>

Inheritance diagram for Urho3D::BatchStateLookupKey:
Urho3D::BatchStateCreateKey

Public Member Functions

bool operator== (const BatchStateLookupKey &rhs) const
 
unsigned ToHash () const
 

Public Attributes

unsigned drawableHash_ {}
 
unsigned pixelLightHash_ {}
 
GeometryType geometryType_ {}
 
Geometrygeometry_ {}
 
Materialmaterial_ {}
 
Passpass_ {}
 

Detailed Description

Key used to lookup cached pipeline states for PipelineBatch.

PipelineState creation may depend only on variables that contribute to BatchStateLookupKey:

  • Parameters of Drawable that contribute to hash calculation. Key does not depend on Drawable for better reuse.
  • Parameters of per-pixel Light that contribute to hash calculation (for both lit and shadow geometry rendering).
  • Geometry type from SourceBatch.
  • Hashed state of Geometry.
  • Hashed state of Material.
  • Hashed state of Pass.

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