tor-browser

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

features.h (2152B)


      1 //
      2 // Copyright 2014 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 
      7 #ifndef LIBANGLE_FEATURES_H_
      8 #define LIBANGLE_FEATURES_H_
      9 
     10 #include "common/platform.h"
     11 
     12 #define ANGLE_DISABLED 0
     13 #define ANGLE_ENABLED 1
     14 
     15 // Feature defaults
     16 
     17 // Direct3D9EX
     18 // The "Debug This Pixel..." feature in PIX often fails when using the
     19 // D3D9Ex interfaces.  In order to get debug pixel to work on a Vista/Win 7
     20 // machine, define "ANGLE_D3D9EX=0" in your project file.
     21 #if !defined(ANGLE_D3D9EX)
     22 #    define ANGLE_D3D9EX ANGLE_ENABLED
     23 #endif
     24 
     25 // Vsync
     26 // ENABLED allows Vsync to be configured at runtime
     27 // DISABLED disallows Vsync
     28 #if !defined(ANGLE_VSYNC)
     29 #    define ANGLE_VSYNC ANGLE_ENABLED
     30 #endif
     31 
     32 // Append HLSL assembly to shader debug info. Defaults to enabled in Debug and off in Release.
     33 #if !defined(ANGLE_APPEND_ASSEMBLY_TO_SHADER_DEBUG_INFO)
     34 #    if !defined(NDEBUG)
     35 #        define ANGLE_APPEND_ASSEMBLY_TO_SHADER_DEBUG_INFO ANGLE_ENABLED
     36 #    else
     37 #        define ANGLE_APPEND_ASSEMBLY_TO_SHADER_DEBUG_INFO ANGLE_DISABLED
     38 #    endif  // !defined(NDEBUG)
     39 #endif      // !defined(ANGLE_APPEND_ASSEMBLY_TO_SHADER_DEBUG_INFO)
     40 
     41 // Program link validation of precisions for uniforms. This feature was
     42 // requested by developers to allow non-conformant shaders to be used which
     43 // contain mismatched precisions.
     44 // ENABLED validate that precision for uniforms match between vertex and fragment shaders
     45 // DISABLED allow precision for uniforms to differ between vertex and fragment shaders
     46 #if !defined(ANGLE_PROGRAM_LINK_VALIDATE_UNIFORM_PRECISION)
     47 #    define ANGLE_PROGRAM_LINK_VALIDATE_UNIFORM_PRECISION ANGLE_ENABLED
     48 #endif
     49 
     50 // Controls if our threading code uses std::async or falls back to single-threaded operations.
     51 // Note that we can't easily use std::async in UWPs due to UWP threading restrictions.
     52 #if !defined(ANGLE_STD_ASYNC_WORKERS) && !defined(ANGLE_ENABLE_WINDOWS_UWP)
     53 #    define ANGLE_STD_ASYNC_WORKERS ANGLE_ENABLED
     54 #endif  // !defined(ANGLE_STD_ASYNC_WORKERS) && & !defined(ANGLE_ENABLE_WINDOWS_UWP)
     55 
     56 #endif  // LIBANGLE_FEATURES_H_