Bewerken

Delen via


D3DKMDT_GAMMA_RAMP structure (d3dkmdt.h)

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;
    D3DKMDT_COLORSPACE_TRANSFORM_MATRIX_V2 *pMatrixV2;
    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

If Type is D3DDDI_GAMMARAMP_MATRIX_3x4, this member is a pointer to a D3DDDI_3x4_COLORSPACE_TRANSFORM structure which describes the 3 by 4 matrix color space transform to be applied, a scalar multiplier, and the lookup table. Available starting in WDDM 2.3.

Data.pMatrixV2

If Type is equal to D3DDDI_GAMMARAMP_MATRIX_V2, this member is a pointer to a D3DKMDT_COLORSPACE_TRANSFORM_MATRIX_V2 structure that contains the lookup table. Available starting in WDDM 2.6.

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

Requirement Value
Minimum supported client Windows Vista
Header d3dkmdt.h