Edit

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

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2019-01-03 15:24:22
    Hash : 1f56ed2a
    Message : Add WGLWindow and WGL test configs. WGLWindow lets us use a Windows driver's bindings instead of ANGLE. This only works if the underlying driver supports OpenGL ES compatibility. Also adds the WGL headers, WGL XML, and a specialized WGL loader. Because of a small driver issue with NVIDIA I added a retry for the WGL Window initialization. Bug: angleproject:2995 Change-Id: Ie5148ece470dd03df33015f4919ad1fa79a859ec Reviewed-on: https://chromium-review.googlesource.com/c/1366021 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 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);
    DrawCallPerfParams DrawCallPerfWGLParams(bool renderToTexture);
    
    #endif  // TESTS_PERF_TESTS_DRAW_CALL_PERF_PARAMS_H_