Edit

kc3-lang/angle/src/tests/perf_tests/DrawCallPerfParams.h

Branch :

  • Show log

    Commit

  • Author : Yuly Novikov
    Date : 2017-10-27 18:14:14
    Hash : b8d2664f
    Message : Run angle_perftests on GLES backend Adds OPENGLES_NULL configuration and selects between OPENGL and OPENGLES based on whether building for Android. Also 2 small changes to get the newly enabled tests to pass on N5X: 1. Require GL_EXT_texture_storage in TexSubImage test 2. Limit numVertexUniforms and numFragmentUniforms to 64 in MatrixUniforms test BUG=675997 Change-Id: I5439e5fb7e93b3a928f12594761115d56f60d81b Reviewed-on: https://chromium-review.googlesource.com/748522 Commit-Queue: Yuly Novikov <ynovikov@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org>

  • src/tests/perf_tests/DrawCallPerfParams.h
  • //
    // Copyright (c) 2017 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.
    //
    // DrawCallPerfParams.h:
    //   Parametrization for performance tests for ANGLE draw call overhead.
    //
    
    #ifndef TESTS_PERF_TESTS_DRAW_CALL_PERF_PARAMS_H_
    #define TESTS_PERF_TESTS_DRAW_CALL_PERF_PARAMS_H_
    
    #include <ostream>
    
    #include "ANGLEPerfTest.h"
    
    struct DrawCallPerfParams : public RenderTestParams
    {
        // Common default options
        DrawCallPerfParams()
        {
            majorVersion = 2;
            minorVersion = 0;
            windowWidth  = 256;
            windowHeight = 256;
        }
        virtual ~DrawCallPerfParams() {}
    
        std::string suffix() const override;
    
        unsigned int iterations = 50;
        double runTimeSeconds   = 10.0;
        int numTris             = 1;
        bool useFBO             = false;
    };
    
    std::ostream &operator<<(std::ostream &os, const DrawCallPerfParams &params);
    
    DrawCallPerfParams DrawCallPerfD3D11Params(bool useNullDevice, bool renderToTexture);
    
    DrawCallPerfParams DrawCallPerfD3D9Params(bool useNullDevice, bool renderToTexture);
    
    DrawCallPerfParams DrawCallPerfOpenGLOrGLESParams(bool useNullDevice, bool renderToTexture);
    
    DrawCallPerfParams DrawCallPerfValidationOnly();
    
    DrawCallPerfParams DrawCallPerfVulkanParams(bool renderToTexture);
    
    #endif  // TESTS_PERF_TESTS_DRAW_CALL_PERF_PARAMS_H_