Edit

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

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2018-08-03 14:24:22
    Hash : 1bd4bfb0
    Message : Add draw call perf tests that use the driver. Also moves some code to the cpp. Bug: angleproject:2747 Change-Id: I38468e6276d52d11d5751df6917c66f15ae61246 Reviewed-on: https://chromium-review.googlesource.com/1163822 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org> Reviewed-by: Frank Henigman <fjhenigman@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();
        virtual ~DrawCallPerfParams();
    
        std::string suffix() const override;
    
        unsigned int iterations;
        double runTimeSeconds;
        int numTris;
        bool useFBO;
    };
    
    DrawCallPerfParams DrawCallPerfD3D11Params(bool useNullDevice, bool renderToTexture);
    DrawCallPerfParams DrawCallPerfD3D9Params(bool useNullDevice, bool renderToTexture);
    DrawCallPerfParams DrawCallPerfOpenGLOrGLESParams(bool useNullDevice, bool renderToTexture);
    DrawCallPerfParams DrawCallPerfValidationOnly();
    DrawCallPerfParams DrawCallPerfVulkanParams(bool useNullDevice, bool renderToTexture);
    
    #endif  // TESTS_PERF_TESTS_DRAW_CALL_PERF_PARAMS_H_