blob: 273b280f068b2dd7de02cd61adc3ff24502aa1fd [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include "flutter/fml/hash_combine.h"
#include "flutter/fml/macros.h"
#include "impeller/base/comparable.h"
#include "impeller/renderer/shader_types.h"
namespace impeller {
class ShaderFunction : public Comparable<ShaderFunction> {
public:
// |Comparable<ShaderFunction>|
virtual ~ShaderFunction();
ShaderStage GetStage() const;
// |Comparable<ShaderFunction>|
std::size_t GetHash() const override;
// |Comparable<ShaderFunction>|
bool IsEqual(const ShaderFunction& other) const override;
protected:
ShaderFunction(UniqueID parent_library_id,
std::string name,
ShaderStage stage);
private:
UniqueID parent_library_id_;
std::string name_;
ShaderStage stage_;
FML_DISALLOW_COPY_AND_ASSIGN(ShaderFunction);
};
} // namespace impeller