Path: blob/main_old/src/compiler/translator/BuiltInFunctionEmulatorGLSL.h
1693 views
//1// Copyright 2011 The ANGLE Project Authors. All rights reserved.2// Use of this source code is governed by a BSD-style license that can be3// found in the LICENSE file.4//56#ifndef COMPILER_TRANSLATOR_BUILTINFUNCTIONEMULATORGLSL_H_7#define COMPILER_TRANSLATOR_BUILTINFUNCTIONEMULATORGLSL_H_89#include "GLSLANG/ShaderLang.h"1011namespace sh12{13class BuiltInFunctionEmulator;1415//16// This works around bug in Intel Mac drivers.17//18void InitBuiltInAbsFunctionEmulatorForGLSLWorkarounds(BuiltInFunctionEmulator *emu,19sh::GLenum shaderType);2021//22// This works around isnan() bug in Intel Mac drivers23//24void InitBuiltInIsnanFunctionEmulatorForGLSLWorkarounds(BuiltInFunctionEmulator *emu,25int targetGLSLVersion);26//27// This works around atan(y, x) bug in NVIDIA drivers.28//29void InitBuiltInAtanFunctionEmulatorForGLSLWorkarounds(BuiltInFunctionEmulator *emu);3031//32// This function is emulating built-in functions missing from GLSL 1.30 and higher.33//34void InitBuiltInFunctionEmulatorForGLSLMissingFunctions(BuiltInFunctionEmulator *emu,35sh::GLenum shaderType,36int targetGLSLVersion);37} // namespace sh3839#endif // COMPILER_TRANSLATOR_BUILTINFUNCTIONEMULATORGLSL_H_404142