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

Indicates the values of the red, green, blue color channels for a rgb color code. More...

#include <nvtx3.hpp>

Inheritance diagram for nvtx3::rgb:
Inheritance graph
[legend]

Public Types

using component_type = uint8_t
 Type used for component values.
 

Public Member Functions

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 red {}
 Red channel value.
 
component_type const green {}
 Green channel value.
 
component_type const blue {}
 Blue channel value.
 

Detailed Description

Indicates the values of the red, green, blue color channels for a rgb color code.

Constructor & Destructor Documentation

constexpr nvtx3::rgb::rgb ( component_type  red_,
component_type  green_,
component_type  blue_ 
)
inlinenoexcept

Construct a rgb with red, green, and blue channels specified by red_, green_, and blue_, respectively.

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

Parameters
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: