#include <sstream>
#include "ANGLEPerfTest.h"
#include "test_utils/gl_raii.h"
#include "util/shader_utils.h"
usingnamespaceangle;
namespace
{
constexpr unsigned int kIterationsPerStep = …;
struct VulkanBarriersPerfParams final : public RenderTestParams
{ … };
constexpr int VulkanBarriersPerfParams::kImageSizes[];
std::ostream &operator<<(std::ostream &os, const VulkanBarriersPerfParams ¶ms)
{ … }
class VulkanBarriersPerfBenchmark : public ANGLERenderTest,
public ::testing::WithParamInterface<VulkanBarriersPerfParams>
{ … };
std::string VulkanBarriersPerfParams::story() const
{ … }
VulkanBarriersPerfBenchmark::VulkanBarriersPerfBenchmark()
: … { … }
constexpr char kVS[] = …;
constexpr char kShortFS[] = …;
constexpr char kSlowFS[] = …;
void VulkanBarriersPerfBenchmark::createTexture(uint32_t textureIndex,
uint32_t sizeIndex,
bool compressed)
{ … }
void VulkanBarriersPerfBenchmark::createUniformBuffer()
{ … }
void VulkanBarriersPerfBenchmark::createFramebuffer(uint32_t fboIndex,
uint32_t textureIndex,
uint32_t sizeIndex)
{ … }
void VulkanBarriersPerfBenchmark::createResources()
{ … }
void VulkanBarriersPerfBenchmark::initializeBenchmark()
{ … }
void VulkanBarriersPerfBenchmark::destroyBenchmark() { … }
void VulkanBarriersPerfBenchmark::drawBenchmark()
{ … }
}
TEST_P(VulkanBarriersPerfBenchmark, Run)
{ … }
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(…);
ANGLE_INSTANTIATE_TEST(…);