tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

DriverUniformMetal.h (972B)


      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 LIBANGLE_RENDERER_METAL_DRIVERUNIFORMMETAL_H_
     11 #define LIBANGLE_RENDERER_METAL_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:
     21    DriverUniformMetal(DriverUniformMode mode) : DriverUniformExtended(mode) {}
     22    DriverUniformMetal() : DriverUniformExtended(DriverUniformMode::InterfaceBlock) {}
     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 /* LIBANGLE_RENDERER_METAL_DRIVERUNIFORMMETAL_H_ */