Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

D3D11_VIDEO_COLOR_RGBA structure

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

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

D3d11.h

See also

Direct3D 11 Video Structures

 

 

Show:
© 2017 Microsoft