lullaby/systems/render/filament/shader_factory.cc
// Creates a unique hash given the shading model and selection parameters.
Creates a unique hash given the shading model and selection parameters.
Creates a unique hash given the shading model and selection parameters .
static HashValue CreateShaderHash(string_view shading_model,
                                  const ShaderSelectionParams& params) {
  HashValue hash = Hash(shading_model);
  for (HashValue feature : params.environment) {
    hash = HashCombine(hash, feature);
  }
  for (HashValue feature : params.features) {
    hash = HashCombine(hash, feature);
  }
  return hash;
}
static HashValue CreateShaderHash ( string_view shading_model , const ShaderSelectionParams & params ) { HashValue hash = Hash ( shading_model ) ; for ( HashValue feature : params . environment ) { hash = HashCombine ( hash , feature ) ; } for ( HashValue feature : params . features ) { hash = HashCombine ( hash , feature ) ; } return hash ; }
Creates a unique hash given the shading model and selection parameters.
Creates a unique hash given the shading model and selection parameters .