Edit

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

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2019-06-13 13:26:58
    Hash : 05ba83a0
    Message : Refactor DrawCallPerfParams. Makes it a bit easier to work with. In prep for adding offscreen configs. Bug: angleproject:3117 Change-Id: Ie2497574b2687592b7b3df2f7b933a19e83b6d16 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1650784 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Yuly Novikov <ynovikov@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;
    
        double runTimeSeconds;
        int numTris;
        bool offscreen;
    };
    
    namespace params
    {
    DrawCallPerfParams DrawCallD3D11();
    DrawCallPerfParams DrawCallD3D9();
    DrawCallPerfParams DrawCallOpenGL();
    DrawCallPerfParams DrawCallValidation();
    DrawCallPerfParams DrawCallVulkan();
    DrawCallPerfParams DrawCallWGL();
    
    // Mixins.
    DrawCallPerfParams Offscreen(const DrawCallPerfParams &input);
    DrawCallPerfParams NullDevice(const DrawCallPerfParams &input);
    }  // namespace params
    
    #endif  // TESTS_PERF_TESTS_DRAW_CALL_PERF_PARAMS_H_