#include "RenderDoc.h"
#include "common/angleutils.h"
#include "common/debug.h"
RenderDoc::RenderDoc() : … { … }
RenderDoc::~RenderDoc()
{ … }
#if defined(ANGLE_PLATFORM_ANDROID) || defined(ANGLE_PLATFORM_LINUX) || \
defined(ANGLE_PLATFORM_WINDOWS)
# include "third_party/renderdoc/src/renderdoc_app.h"
# if defined(ANGLE_PLATFORM_WINDOWS)
constexpr char kRenderDocModuleName[] = "renderdoc";
# elif defined(ANGLE_PLATFORM_ANDROID)
constexpr char kRenderDocModuleName[] = "libVkLayer_GLES_RenderDoc";
# else
constexpr char kRenderDocModuleName[] = …;
# endif
void RenderDoc::attach()
{ … }
void RenderDoc::startFrame()
{ … }
void RenderDoc::endFrame()
{ … }
#else
void RenderDoc::attach()
{
mApi = nullptr;
}
void RenderDoc::startFrame() {}
void RenderDoc::endFrame() {}
#endif