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