Edit

kc3-lang/angle/src/compiler/translator/OutputVulkanGLSLForMetal.h

Branch :

  • Show log

    Commit

  • Author : Shahbaz Youssefi
    Date : 2021-02-25 16:55:14
    Hash : 2f737c25
    Message : Translator: Rename GLSL to SPIR-V in Vulkan and Metal output Preparation for actual SPIR-V output instead of GLSL. Bug: angleproject:4889 Change-Id: Ic279b23d3a817bd5dca66a844905378207afdbac Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2721194 Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Tim Van Patten <timvp@google.com>

  • src/compiler/translator/OutputVulkanGLSLForMetal.h
  • //
    // Copyright 2019 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.
    //
    // TOutputVulkanGLSLForMetal:
    //    This is a special version Vulkan GLSL output that will make some special
    //    considerations for Metal backend limitations.
    //
    
    #ifndef COMPILER_TRANSLATOR_OUTPUTVULKANGLSLFORMETAL_H_
    #define COMPILER_TRANSLATOR_OUTPUTVULKANGLSLFORMETAL_H_
    
    #include "compiler/translator/OutputVulkanGLSL.h"
    
    namespace sh
    {
    
    class TOutputVulkanGLSLForMetal : public TOutputVulkanGLSL
    {
      public:
        TOutputVulkanGLSLForMetal(TInfoSinkBase &objSink,
                                  ShArrayIndexClampingStrategy clampingStrategy,
                                  ShHashFunction64 hashFunction,
                                  NameMap &nameMap,
                                  TSymbolTable *symbolTable,
                                  sh::GLenum shaderType,
                                  int shaderVersion,
                                  ShShaderOutput output,
                                  ShCompileOptions compileOptions);
    
        static void RemoveInvariantForTest(bool remove);
    
      protected:
        bool visitGlobalQualifierDeclaration(Visit visit,
                                             TIntermGlobalQualifierDeclaration *node) override;
        void writeVariableType(const TType &type,
                               const TSymbol *symbol,
                               bool isFunctionArgument) override;
    };
    
    }  // namespace sh
    
    #endif  // COMPILER_TRANSLATOR_OUTPUTVULKANGLSLFORMETAL_H_