Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies an RGB color value.
Syntax
typedef struct D3D11_VIDEO_COLOR_RGBA {
float R;
float G;
float B;
float A;
} D3D11_VIDEO_COLOR_RGBA;
Members
R
The red value.
G
The green value.
B
The blue value.
A
The alpha value. Values range from 0 (transparent) to 1 (opaque).
Remarks
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)
.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
Header | d3d11.h |