Hash :
095d7c0a
Author :
Date :
2022-01-06T01:20:53
Translator: Clean up spec const / driver uniform types Bug: angleproject:6755 Change-Id: I8fb1557a5e29fcc28d5cb2f3aaa2c4a14b72583d Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3369125 Reviewed-by: Tim Van Patten <timvp@google.com> Commit-Queue: Tim Van Patten <timvp@google.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
//
// Copyright 2020 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// DriverUniformMetal:
// Struct defining the default driver uniforms for direct and SpirV based ANGLE translation
//
#ifndef LIBANGLE_RENDERER_METAL_DRIVERUNIFORMMETAL_H_
#define LIBANGLE_RENDERER_METAL_DRIVERUNIFORMMETAL_H_
#include "compiler/translator/tree_util/DriverUniform.h"
namespace sh
{
class DriverUniformMetal : public DriverUniform
{
public:
DriverUniformMetal(DriverUniformMode mode) : DriverUniform(mode) {}
DriverUniformMetal() : DriverUniform(DriverUniformMode::InterfaceBlock) {}
~DriverUniformMetal() override {}
TIntermTyped *getHalfRenderAreaRef() const override;
TIntermTyped *getFlipXYRef() const override;
TIntermTyped *getNegFlipXYRef() const override;
TIntermTyped *getNegFlipYRef() const override;
TIntermTyped *getCoverageMaskFieldRef() const;
protected:
TFieldList *createUniformFields(TSymbolTable *symbolTable) override;
};
} // namespace sh
#endif /* LIBANGLE_RENDERER_METAL_DRIVERUNIFORMMETAL_H_ */