Specifies an RGB color value.
typedef struct D3D11_VIDEO_COLOR_RGBA {
float R;
float G;
float B;
float A;
} D3D11_VIDEO_COLOR_RGBA;
R
The red value.
G
The green value.
B
The blue value.
A
The alpha value. Values range from 0 (transparent) to 1 (opaque).
The RGB values have a nominal range of [0…1]. For an RGB format with n bits per channel, the value of each color component is calculated as follows:
val = f * ((1 << n)-1)
For example, for RGB-32 (8 bits per channel), val = BYTE(f * 255.0).
Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).