mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +00:00
IntrinsicTable: De-duplicate returned Intrinsics
Much like sem::Type, it greatly simplifies downstream logic if we can compare sem::Intrinsic pointers to know if they refer to the same intrinsic overload. Change-Id: If236247cd3979bbde821d9294f304ab85ba4938e Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/58061 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
@@ -51,8 +51,8 @@ struct SamplerTexturePair {
|
||||
|
||||
namespace std {
|
||||
|
||||
/// Custom std::hash specialization for ttint::inspector::SamplerTexturePair so
|
||||
/// SamplerTexturePairss be used as keys for std::unordered_map and
|
||||
/// Custom std::hash specialization for tint::inspector::SamplerTexturePair so
|
||||
/// SamplerTexturePairs be used as keys for std::unordered_map and
|
||||
/// std::unordered_set.
|
||||
template <>
|
||||
class hash<tint::inspector::SamplerTexturePair> {
|
||||
|
||||
Reference in New Issue
Block a user