#include "ANGLEPerfTest.h"
#include <iostream>
#include <random>
#include <sstream>
#include "test_utils/gl_raii.h"
#include "util/shader_utils.h"
usingnamespaceangle;
namespace
{
constexpr uint32_t kMultipassPassCount = …;
struct MultisampledRenderToTextureParams final : public RenderTestParams
{ … };
std::ostream &operator<<(std::ostream &os, const MultisampledRenderToTextureParams ¶ms)
{ … }
std::string MultisampledRenderToTextureParams::story() const
{ … }
class MultisampledRenderToTextureBenchmark
: public ANGLERenderTest,
public ::testing::WithParamInterface<MultisampledRenderToTextureParams>
{ … };
MultisampledRenderToTextureBenchmark::MultisampledRenderToTextureBenchmark()
: … { … }
void MultisampledRenderToTextureBenchmark::initializeBenchmark()
{ … }
void MultisampledRenderToTextureBenchmark::initShaders()
{ … }
void MultisampledRenderToTextureBenchmark::destroyBenchmark()
{ … }
void MultisampledRenderToTextureBenchmark::drawBenchmark()
{ … }
MultisampledRenderToTextureParams D3D11Params(bool multiplePasses, bool withDepthStencil)
{ … }
MultisampledRenderToTextureParams MetalParams(bool multiplePasses, bool withDepthStencil)
{ … }
MultisampledRenderToTextureParams OpenGLOrGLESParams(bool multiplePasses, bool withDepthStencil)
{ … }
MultisampledRenderToTextureParams VulkanParams(bool multiplePasses, bool withDepthStencil)
{ … }
}
TEST_P(MultisampledRenderToTextureBenchmark, Run)
{ … }
usingnamespaceparams;
ANGLE_INSTANTIATE_TEST(…);