Lines Matching refs:Symbol
18 // If TINT_SYMBOL_STORE_DEBUG_NAME is 1, Symbol instances store a `debug_name_`
32 class Symbol {
36 Symbol();
39 /// @param program_id the identifier of the program that owns this Symbol
40 Symbol(uint32_t val, tint::ProgramID program_id);
44 /// @param program_id the identifier of the program that owns this Symbol
46 Symbol(uint32_t val, tint::ProgramID program_id, std::string debug_name);
50 Symbol(const Symbol& o);
53 Symbol(Symbol&& o);
55 ~Symbol();
60 Symbol& operator=(const Symbol& o);
64 Symbol& operator=(Symbol&& o);
69 bool operator==(const Symbol& o) const;
74 bool operator<(const Symbol& o) const;
97 /// @param sym the Symbol
98 /// @returns the ProgramID that owns the given Symbol
99 inline ProgramID ProgramIDOf(Symbol sym) {
107 /// Custom std::hash specialization for tint::Symbol so symbols can be used as
110 class hash<tint::Symbol> {
113 /// @return the Symbol internal value
114 inline std::size_t operator()(const tint::Symbol& sym) const {