Path: blob/main_old/src/compiler/translator/HashNames.h
1693 views
//1// Copyright 2002 The ANGLE Project Authors. All rights reserved.2// Use of this source code is governed by a BSD-style license that can be3// found in the LICENSE file.4//56#ifndef COMPILER_TRANSLATOR_HASHNAMES_H_7#define COMPILER_TRANSLATOR_HASHNAMES_H_89#include <map>1011#include "GLSLANG/ShaderLang.h"12#include "compiler/translator/Common.h"1314namespace sh15{1617typedef std::map<TPersistString, TPersistString> NameMap;1819class ImmutableString;20class TSymbol;2122ImmutableString HashName(const ImmutableString &name,23ShHashFunction64 hashFunction,24NameMap *nameMap);2526// Hash user-defined name for GLSL output, with special handling for internal names.27// The nameMap parameter is optional and is used to cache hashed names if set.28ImmutableString HashName(const TSymbol *symbol, ShHashFunction64 hashFunction, NameMap *nameMap);2930} // namespace sh3132#endif // COMPILER_TRANSLATOR_HASHNAMES_H_333435