|
Rendu
A lightweight rendering engine for experimentations
|
Inserted a marker on the current render or upload command buffer. These markers are visible in profling and debugging tools such as Renderdoc, as are object debug labels. More...
#include <GPUTypes.hpp>
Public Types | |
| enum class | Type : uint { SCOPE , INSERT } |
| enum class | Target : uint { RENDER , UPLOAD } |
Public Member Functions | |
| GPUMarker (const std::string &label, const glm::vec4 &color, Type type=GPUMarker::Type::SCOPE, Target target=GPUMarker::Target::RENDER) | |
| GPUMarker (const std::string &label, Type type=GPUMarker::Type::SCOPE, Target target=GPUMarker::Target::RENDER) | |
| ~GPUMarker () | |
| Destructor. | |
Private Member Functions | |
| void | createMarker (const std::string &label, const glm::vec4 &color) |
Private Attributes | |
| Type | _type = GPUMarker::Type::SCOPE |
| The type of marker. | |
| Target | _target = GPUMarker::Target::RENDER |
| The target command buffer. | |
Inserted a marker on the current render or upload command buffer. These markers are visible in profling and debugging tools such as Renderdoc, as are object debug labels.
|
strong |
|
strong |
| GPUMarker::GPUMarker | ( | const std::string & | label, |
| const glm::vec4 & | color, | ||
| GPUMarker::Type | type = GPUMarker::Type::SCOPE, |
||
| GPUMarker::Target | target = GPUMarker::Target::RENDER |
||
| ) |
Constructor
| label | the label to display |
| color | the color to use for the marker (in Renderdoc for instance) |
| type | the lifetime duration of the marker |
| target | the target command buffer |
| GPUMarker::GPUMarker | ( | const std::string & | label, |
| Type | type = GPUMarker::Type::SCOPE, |
||
| Target | target = GPUMarker::Target::RENDER |
||
| ) |
Constructor
| label | the label to display |
| type | the lifetime duration of the marker |
| target | the target command buffer |
|
private |
Insert the marker in the proper command buffer
| label | the marker label |
| color | the marker color |