// // Copyright 2015 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. // // ShCompile_test.cpp // Test the sh::Compile interface with different parameters. // #include <clocale> #include "GLSLANG/ShaderLang.h" #include "angle_gl.h" #include "common/angleutils.h" #include "common/platform.h" #include "gtest/gtest.h" class ShCompileTest : public testing::Test { … }; ShCompileTest::ScopedRestoreDefaultLocale::ScopedRestoreDefaultLocale() { … } ShCompileTest::ScopedRestoreDefaultLocale::~ScopedRestoreDefaultLocale() { … } class ShCompileComputeTest : public ShCompileTest { … }; // Test calling sh::Compile with compute shader source string. TEST_F(ShCompileComputeTest, ComputeShaderString) { … } // Test calling sh::Compile with more than one shader source string. TEST_F(ShCompileTest, MultipleShaderStrings) { … } // Test calling sh::Compile with a tokens split into different shader source strings. TEST_F(ShCompileTest, TokensSplitInShaderStrings) { … } // Parsing floats in shaders can run afoul of locale settings. // Eg. in de_DE, `strtof("1.9")` will yield `1.0f`. (It's expecting "1,9") TEST_F(ShCompileTest, DecimalSepLocale) { … } // Desktop GLSL support is not enabled on Android #if !defined(ANGLE_PLATFORM_ANDROID) #endif // !defined(ANGLE_PLATFORM_ANDROID)