|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
An RAII-style wrapper for Vulkan debug labels. More...
#include <VulkanHelper.h>
Public Member Functions | |
| DebugLabel (VkCommandBuffer, const char *, const float *=nullptr) | |
| ~DebugLabel () | |
| DebugLabel (const DebugLabel &)=delete | |
| DebugLabel & | operator= (const DebugLabel &)=delete |
| DebugLabel (DebugLabel &&)=delete | |
| DebugLabel & | operator= (DebugLabel &&)=delete |
An RAII-style wrapper for Vulkan debug labels.
Creates a debug label on construction and automatically ends it when the object goes out of scope. This ensures that labels are always properly closed, even if exceptions occur. In release builds (when IS_IN_DEBUG is not defined), this class is empty and has no overhead.
Usage: void recordCommands(VkCommandBuffer cmd) { DebugLabel scope(cmd, "My Render Pass"); ... your rendering commands ... } // Label is automatically closed here
Definition at line 432 of file VulkanHelper.h.
|
inline |
Definition at line 448 of file VulkanHelper.h.
Referenced by DebugLabel(), DebugLabel(), operator=(), and operator=().
|
inline |
Definition at line 450 of file VulkanHelper.h.
|
delete |
|
delete |
|
delete |
|
delete |