NVTX++  3.0
C++ convenience wrappers for NVTX.
Public Member Functions | Public Attributes | List of all members
nvtx3::argb Struct Referencefinal

Indicates the value of the alpha, red, green, and blue color channels for an argb color code. More...

#include <nvtx3.hpp>

Inheritance diagram for nvtx3::argb:
Inheritance graph
[legend]
Collaboration diagram for nvtx3::argb:
Collaboration graph
[legend]

Public Member Functions

constexpr argb (component_type alpha_, component_type red_, component_type green_, component_type blue_) noexcept
 Construct an argb with alpha, red, green, and blue channels specified by alpha_, red_, green_, and blue_, respectively. More...
 
- Public Member Functions inherited from nvtx3::rgb
constexpr rgb (component_type red_, component_type green_, component_type blue_) noexcept
 Construct a rgb with red, green, and blue channels specified by red_, green_, and blue_, respectively. More...
 

Public Attributes

component_type const alpha {}
 Alpha channel value.
 
- Public Attributes inherited from nvtx3::rgb
component_type const red {}
 Red channel value.
 
component_type const green {}
 Green channel value.
 
component_type const blue {}
 Blue channel value.
 

Additional Inherited Members

- Public Types inherited from nvtx3::rgb
using component_type = uint8_t
 Type used for component values.
 

Detailed Description

Indicates the value of the alpha, red, green, and blue color channels for an argb color code.

Constructor & Destructor Documentation

constexpr nvtx3::argb::argb ( component_type  alpha_,
component_type  red_,
component_type  green_,
component_type  blue_ 
)
inlinenoexcept

Construct an argb with alpha, red, green, and blue channels specified by alpha_, red_, green_, and blue_, respectively.

Valid values are in the range [0,255].

Parameters
alpha_Value of the alpha channel (opacity)
red_Value of the red channel
green_Value of the green channel
blue_Value of the blue channel

The documentation for this struct was generated from the following file: