#include "ANGLEPerfTest.h"
#include <cmath>
#include <sstream>
#include "util/Matrix.h"
#include "util/random_utils.h"
#include "util/shader_utils.h"
usingnamespaceangle;
usingnamespaceegl_platform;
namespace
{
float AnimationSignal(float t)
{ … }
template <typename T>
size_t VectorSizeBytes(const std::vector<T> &vec)
{ … }
Vector3 RandomVector3(RNG *rng)
{ … }
struct InstancingPerfParams final : public RenderTestParams
{ … };
std::ostream &operator<<(std::ostream &os, const InstancingPerfParams ¶ms)
{ … }
class InstancingPerfBenchmark : public ANGLERenderTest,
public ::testing::WithParamInterface<InstancingPerfParams>
{ … };
InstancingPerfBenchmark::InstancingPerfBenchmark()
: … { … }
void InstancingPerfBenchmark::initializeBenchmark()
{ … }
void InstancingPerfBenchmark::destroyBenchmark()
{ … }
void InstancingPerfBenchmark::drawBenchmark()
{ … }
InstancingPerfParams InstancingPerfD3D11Params()
{ … }
InstancingPerfParams InstancingPerfMetalParams()
{ … }
InstancingPerfParams InstancingPerfOpenGLOrGLESParams()
{ … }
TEST_P(InstancingPerfBenchmark, Run)
{ … }
ANGLE_INSTANTIATE_TEST(…);
}