Edit

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

Branch :

  • Show log

    Commit

  • Author : Mohan Maiya
    Date : 2020-03-19 16:30:21
    Hash : ca2b6e1f
    Message : Vulkan: Implement EXT_shader_non_constant_global_initializers Enables the translator to handle non-constant global initializers in all essl versions iff the shader enables the extension to do so. Bug: angleproject:4468 Test: angle_end2end_tests --gtest_filter=ShaderNonConstGlobalInitializerTest.* Change-Id: I8f138c12fc83d2f38ff8f45ca9133222b01e4087 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2102959 Reviewed-by: Tobin Ehlis <tobine@google.com> Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: Mohan Maiya <m.maiya@samsung.com>

  • src/compiler/translator/ValidateGlobalInitializer.h
  • //
    // Copyright 2002 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.
    //
    
    #ifndef COMPILER_TRANSLATOR_VALIDATEGLOBALINITIALIZER_H_
    #define COMPILER_TRANSLATOR_VALIDATEGLOBALINITIALIZER_H_
    
    namespace sh
    {
    
    class TIntermTyped;
    
    // Returns true if the initializer is valid.
    bool ValidateGlobalInitializer(TIntermTyped *initializer,
                                   int shaderVersion,
                                   bool isWebGL,
                                   bool hasExtNonConstGlobalInitializers,
                                   bool *warning);
    
    }  // namespace sh
    
    #endif  // COMPILER_TRANSLATOR_VALIDATEGLOBALINITIALIZER_H_