Hash :
7df7fc7f
Author :
Date :
2021-06-20T00:05:28
Tests: Add support for --renderdoc This change adds support for a new flag namely `--renderdoc` to end2end and deqp tests. With this flag, each test automatically starts and ends a frame capture in renderdoc, working around an issue where renderdoc refuses to capture a test frame that doesn't start or end with a swap. With end2end tests, the capture starts before test set up, and ends after test tear down. With deqp tests, it starts before init, ends and restarts after each test iteration and ends after deinit. Bug: angleproject:6072 Change-Id: Ib41b816aff121bf922d9147044cc363c33a62181 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2971835 Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Cody Northrop <cnorthrop@google.com> Reviewed-by: Jamie Madill <jmadill@chromium.org>
//
// Copyright 2021 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// RenderDoc:
// Connection to renderdoc for capturing tests through its API.
//
#ifndef TESTS_TEST_UTILS_RENDERDOC_H_
#define TESTS_TEST_UTILS_RENDERDOC_H_
#include "common/system_utils.h"
class RenderDoc
{
public:
RenderDoc();
~RenderDoc();
void attach();
void startFrame();
void endFrame();
private:
angle::Library *mRenderDocModule;
void *mApi;
};
#endif // TESTS_TEST_UTILS_RENDERDOC_H_