a11ee31883
This commit provides a minimal API for capturing a graphics frame, save it and replay it later for debugging. The intention here is to provide the basic need for future work to allow capturing through tooling or programmatically from code. This API is intended to be cross-platform by using Metal Capture Manager on Apple devices and RenderDoc C++ API everywhere else. Task-number: QTBUG-114067 Change-Id: If72d92bdef5e5985a0ec2e85e97fd1182da3c53c Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
21 lines
589 B
CMake
21 lines
589 B
CMake
# Copyright (C) 2023 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
if(WIN32 OR UNIX)
|
|
find_path(RenderDoc_INCLUDE_DIR
|
|
NAMES renderdoc_app.h)
|
|
endif()
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(RenderDoc
|
|
DEFAULT_MSG
|
|
RenderDoc_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(RenderDoc_INCLUDE_DIR)
|
|
|
|
if(RenderDoc_FOUND AND NOT TARGET RenderDoc::RenderDoc)
|
|
add_library(RenderDoc::RenderDoc INTERFACE IMPORTED)
|
|
set_target_properties(RenderDoc::RenderDoc PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "${RenderDoc_INCLUDE_DIR}")
|
|
endif()
|