#include "ANGLEPerfTest.h"
#include <iostream>
#include <random>
#include <sstream>
#include "test_utils/gl_raii.h"
#include "util/shader_utils.h"
usingnamespaceangle;
namespace
{
struct MultisampledSwapchainResolveParams final : public RenderTestParams
{ … };
std::ostream &operator<<(std::ostream &os, const MultisampledSwapchainResolveParams ¶ms)
{ … }
std::string MultisampledSwapchainResolveParams::story() const
{ … }
class MultisampledSwapchainResolveBenchmark
: public ANGLERenderTest,
public ::testing::WithParamInterface<MultisampledSwapchainResolveParams>
{ … };
MultisampledSwapchainResolveBenchmark::MultisampledSwapchainResolveBenchmark()
: … { … }
void MultisampledSwapchainResolveBenchmark::initializeBenchmark()
{ … }
void MultisampledSwapchainResolveBenchmark::initShaders()
{ … }
void MultisampledSwapchainResolveBenchmark::destroyBenchmark()
{ … }
void MultisampledSwapchainResolveBenchmark::drawBenchmark()
{ … }
MultisampledSwapchainResolveParams VulkanParams()
{ … }
}
TEST_P(MultisampledSwapchainResolveBenchmark, Run)
{ … }
usingnamespaceparams;
ANGLE_INSTANTIATE_TEST(…);