// d3dkmdt.h
typedef struct _D3DKMDT_VIDPN_SOURCE_MODE {
D3DKMDT_VIDEO_PRESENT_SOURCE_MODE_ID Id;
D3DKMDT_VIDPN_SOURCE_MODE_TYPE Type;
union {
D3DKMDT_GRAPHICS_RENDERING_FORMAT Graphics;
D3DKMDT_TEXT_RENDERING_FORMAT Text;
} Format;
} D3DKMDT_VIDPN_SOURCE_MODE;
View the official Windows Driver Kit DDI referenceNo description available.
The D3DKMDT_VIDPN_SOURCE_MODE structure contains information about a video present network (VidPN) source mode.
IdAn integer that identifies the source mode. The identifier is generated and filled in by the VidPN manager. However, the display miniport driver has the option of overwriting the identifier. For more information, see pfnCreateNewModeInfo.
TypeA D3DKMDT_VIDPN_SOURCE_MODE_TYPE enumerator that indicates the mode type: graphics or text.
FormatA union that contains information about either the graphics rendering format or the text format in the following members.
Format.GraphicsA D3DKMDT_GRAPHICS_RENDERING_FORMAT structure that contains information about the graphics rendering format (for example, primary surface size and pixel format). This member is meaningful only if the Type member is equal to D3DKMDT_RMT_GRAPHICS.
Format.TextA D3DKMDT_TEXT_RENDERING_FORMAT enumerator that indicates the text format. This member is meaningful only if the Type member is equal to D3DKMDT_RMT_TEXT.
For more information about video present sources and VidPN source modes, see Introduction to Video Present Networks and Enumerating Cofunctional VidPN Source and Target Modes.