xref: /aosp_15_r20/external/angle/src/compiler/translator/msl/DriverUniformMetal.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 //
2 // Copyright 2020 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // DriverUniformMetal:
7 //   Struct defining the default driver uniforms for direct and SpirV based ANGLE translation
8 //
9 
10 #ifndef COMPILER_TRANSLATOR_MSL_DRIVERUNIFORMMETAL_H_
11 #define COMPILER_TRANSLATOR_MSL_DRIVERUNIFORMMETAL_H_
12 
13 #include "compiler/translator/tree_util/DriverUniform.h"
14 
15 namespace sh
16 {
17 
18 class DriverUniformMetal : public DriverUniformExtended
19 {
20   public:
DriverUniformMetal(DriverUniformMode mode)21     DriverUniformMetal(DriverUniformMode mode) : DriverUniformExtended(mode) {}
DriverUniformMetal()22     DriverUniformMetal() : DriverUniformExtended(DriverUniformMode::InterfaceBlock) {}
~DriverUniformMetal()23     ~DriverUniformMetal() override {}
24 
25     TIntermTyped *getCoverageMaskField() const;
26 
27   protected:
28     TFieldList *createUniformFields(TSymbolTable *symbolTable) override;
29 };
30 
31 }  // namespace sh
32 
33 #endif  // COMPILER_TRANSLATOR_MSL_DRIVERUNIFORMMETAL_H_
34