Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
RenderDoc.h
Go to the documentation of this file.
1#pragma once
2#ifdef RENDERDOC_ENABLED
3#include <renderdoc_app.h>
4#endif
5
6#include <string>
7#include <vulkan/vulkan_core.h>
8
9#include "GLFW/glfw3.h"
10#ifdef WIN32
11#include <windows.h>
12#endif
13
14class RenderDoc {
15public:
16 static RenderDoc& get();
17
18 // Core functionality
19 bool init();
20 void startCapture(VkDevice device) const;
21 void endCapture(VkDevice device) const;
22 void triggerCapture();
23 bool isCapturing() const;
24 bool isConnected() const;
25
26 // Capture management
27 void setCaptureTitle(const std::string& title);
28 void setCapturePath(const std::string& pathTemplate);
29 void triggerMultiFrameCapture(uint32_t numFrames);
30 // Status checking
31 void printStatus() const;
32 uint32_t getNumCaptures() const;
33
34 // UI control
35 void launchUI();
36 void showUI();
37
38 // Options
39 void enableCallstacks(bool enable);
40 void enableAPIValidation(bool enable);
41 void enableOverlay(bool enable);
42
43 private:
44 RenderDoc() = default;
45
46#ifdef RENDERDOC_ENABLED
47 RENDERDOC_API_1_1_2* m_api = nullptr; // Use 1.1.2 as base - compatible with newer versions
48#endif
49#ifdef WIN32
50 HWND m_window = nullptr;
51#endif
52 bool m_available = false;
53};
void printStatus() const
bool init()
Definition RenderDoc.cpp:20
void showUI()
void launchUI()
void startCapture(VkDevice device) const
Definition RenderDoc.cpp:60
void setCaptureTitle(const std::string &title)
void setCapturePath(const std::string &pathTemplate)
void enableCallstacks(bool enable)
void triggerMultiFrameCapture(uint32_t numFrames)
void endCapture(VkDevice device) const
Definition RenderDoc.cpp:68
RenderDoc()=default
bool m_available
Definition RenderDoc.h:52
uint32_t getNumCaptures() const
static RenderDoc & get()
Definition RenderDoc.cpp:15
void enableAPIValidation(bool enable)
void enableOverlay(bool enable)
void triggerCapture()
Definition RenderDoc.cpp:80
bool isConnected() const
bool isCapturing() const
Definition RenderDoc.cpp:92