blob: d7c2d1f098f0ff9d03feb86eac44377fb4ea7362 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/ui/lib/escher/vk/shader_variant_args.h"
#include "src/ui/lib/escher/util/hasher.h"
namespace escher {
Hash ShaderVariantArgs::GenerateHash() const {
Hasher h;
for (auto& def : definitions_) {
h.string(def.first);
h.string(def.second);
}
return h.value();
}
} // namespace escher