#include "ANGLEPerfTest.h"
#include <iostream>
#include <random>
#include <sstream>
#include "test_utils/angle_test_instantiate.h"
#include "util/shader_utils.h"
namespace angle
{
namespace
{
constexpr unsigned int kIterationsPerStep = …;
enum TestMode
{ … };
enum AllocationStyle
{ … };
struct BindingsParams final : public RenderTestParams
{ … };
std::ostream &operator<<(std::ostream &os, const BindingsParams ¶ms)
{ … }
std::string BindingsParams::story() const
{ … }
class BindingsBenchmark : public ANGLERenderTest,
public ::testing::WithParamInterface<BindingsParams>
{ … };
BindingsBenchmark::BindingsBenchmark() : … { … }
void BindingsBenchmark::initializeBenchmark()
{ … }
void BindingsBenchmark::destroyBenchmark()
{ … }
void BindingsBenchmark::drawBenchmark()
{ … }
BindingsParams D3D11Params(AllocationStyle allocationStyle)
{ … }
BindingsParams OpenGLOrGLESParams(AllocationStyle allocationStyle)
{ … }
BindingsParams VulkanParams(AllocationStyle allocationStyle, TestMode testMode)
{ … }
TEST_P(BindingsBenchmark, Run)
{ … }
}
ANGLE_INSTANTIATE_TEST(…);
}