Edit

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

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2017-02-15 10:41:31
    Hash : 3764b257
    Message : Vulkan: Run simple triangle perf test. The most basic perf test possible. BUG=angleproject:xxxx Change-Id: I71b28098c0a1f2174a0177b08bddf74d337438e9 Reviewed-on: https://chromium-review.googlesource.com/427270 Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: 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 final : public RenderTestParams
    {
        // Common default options
        DrawCallPerfParams()
        {
            majorVersion = 2;
            minorVersion = 0;
            windowWidth  = 256;
            windowHeight = 256;
        }
    
        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 DrawCallPerfOpenGLParams(bool useNullDevice, bool renderToTexture);
    
    DrawCallPerfParams DrawCallPerfValidationOnly();
    
    DrawCallPerfParams DrawCallPerfVulkanParams(bool renderToTexture);
    
    #endif  // TESTS_PERF_TESTS_DRAW_CALL_PERF_PARAMS_H_