D3DKMT_SETGAMMARAMP structure (d3dkmthk.h)
The D3DKMT_SETGAMMARAMP structure describes parameters for setting the gamma ramp.
Syntax
typedef struct _D3DKMT_SETGAMMARAMP {
[in] D3DKMT_HANDLE hDevice;
[in] D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;
[in] D3DDDI_GAMMARAMP_TYPE Type;
union {
[in] D3DDDI_GAMMA_RAMP_RGB256x3x16 *pGammaRampRgb256x3x16;
[in] D3DDDI_GAMMA_RAMP_DXGI_1 *pGammaRampDXGI1;
};
[in] UINT Size;
} D3DKMT_SETGAMMARAMP;
Members
[in] hDevice
A handle to the device.
[in] VidPnSourceId
The zero-based identification number of the video present source in a path of a video present network (VidPN) topology for the VidPN source.
[in] Type
A D3DDDI_GAMMARAMP_TYPE-typed value. This member can be one of the following: D3DDDI_GAMMARAMP_UNINITIALIZED (0), D3DDDI_GAMMARAMP_DEFAULT (1), D3DDDI_GAMMARAMP_RGB256x3x16 (2), or D3DDDI_GAMMARAMP_DXGI_1 (3).
[in] pGammaRampRgb256x3x16
A pointer to a D3DDDI_GAMMA_RAMP_RGB256x3x16 structure. The union that is contained in D3DKMT_SETGAMMARAMP holds a structure of this type if the Type member is D3DDDI_GAMMARAMP_RGB256x3x16.
[in] pGammaRampDXGI1
A pointer to a D3DDDI_GAMMA_RAMP_DXGI_1 structure. The union that is contained in D3DKMT_SETGAMMARAMP holds a structure of this type if the Type member is D3DDDI_GAMMARAMP_DXGI_1.
[in] Size
The size of the D3DDDI_GAMMA_RAMP_RGB256x3x16 or D3DDDI_GAMMA_RAMP_DXGI_1 structure that D3DDDI_GAMMA_RAMP_RGB256x3x16 or D3DDDI_GAMMA_RAMP_DXGI_1 points to.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Header | d3dkmthk.h (include D3dkmthk.h) |