_D3DKMDT_GAMMA_RAMP structure

The D3DKMDT_GAMMA_RAMP structure contains descriptive information about a gamma lookup table and a pointer to the lookup table.

Syntax

typedef struct _D3DKMDT_GAMMA_RAMP {
  D3DDDI_GAMMARAMP_TYPE Type;
  SIZE_T                DataSize;
  union {
    D3DDDI_GAMMA_RAMP_RGB256x3x16    *pRgb256x3x16;
    D3DDDI_GAMMA_RAMP_DXGI_1         *pDxgi1;
    D3DKMDT_3x4_COLORSPACE_TRANSFORM *p3x4;
    VOID                             *pRaw;
  } Data;
} D3DKMDT_GAMMA_RAMP;

Members

Type

A D3DDDI_GAMMARAMP_TYPE enumerator that specifies the format of the lookup table.

DataSize

The size, in bytes, of the lookup table pointed to by Data.

Data

[in] A union that contains one of the following ways to access the lookup table data depending on the value in the Type member:

Data.pRgb256x3x16

If Type is equal to D3DDDI_GAMMARAMP_RGB256x3x16, this member is a pointer to a D3DDDI_GAMMA_RAMP_RGB256x3x16 structure that contains the lookup table.

Data.pDxgi1

If Type is equal to D3DDDI_GAMMARAMP_DXGI_1, this member is a pointer to a D3DDDI_GAMMA_RAMP_DXGI_1 structure that contains the lookup table.

Data.p3x4

Pointer to a D3DDDI_3x4_COLORSPACE_TRANSFORM which describes the 3 by 4 matrix colorspace transform to be applied.

Data.pRaw

This member provides an alternative way to access the lookup table data. For example, for copying the lookup table, VOID* might be more convenient than D3DDDI_GAMMA_RAMP_RGB256x3x16.

Remarks

The GammaRamp member of the D3DKMDT_VIDPN_PRESENT_PATH structure is a D3DKMDT_GAMMA_RAMP structure.

Requirements

   
Windows version Available in Windows Vista and later versions of the Windows operating systems. Available in Windows Vista and later versions of the Windows operating systems.
Header d3dkmdt.h (include D3dkmdt.h)