PFND3DDDI_SETDISPLAYMODE callback function (d3dumddi.h)
The SetDisplayMode function switches to a display mode or primary that is not supported by the GDI desktop.
Syntax
PFND3DDDI_SETDISPLAYMODE Pfnd3dddiSetdisplaymode;
HRESULT Pfnd3dddiSetdisplaymode(
HANDLE hDevice,
const D3DDDIARG_SETDISPLAYMODE *unnamedParam2
)
{...}
Parameters
hDevice
A handle to the display device (graphics context).
unnamedParam2
pData [in]
A pointer to a D3DDDIARG_SETDISPLAYMODE structure that specifies parameters for setting the display mode.
Return value
SetDisplayMode returns S_OK or an appropriate error result if the display mode is not successfully set.
Remarks
The Microsoft Direct3D runtime calls SetDisplayMode to switch to a display mode or primary that is not supported by the GDI desktop. The following list describes examples of such primaries:
- Primaries that are created with 10-bits-per-channel (10:10:10:2) display and render target formats (for example, D3DFMT_A2R10G10B10)
- Multiple-sampled primaries where the multiple-sampling is performed while scanning-out
- Persistent primaries that are used by full-screen Microsoft DirectX version 9.L applications
The user-mode display driver can set the hPrimaryAllocation member of the D3DDDICB_SETDISPLAYMODE structure in the call to pfnSetDisplayModeCb to scan out any allocation. However, the allocation must be marked as a primary (that is, the user-mode display driver must have set the Primary bit-field flag in the Flags member of the D3DDDI_ALLOCATIONINFO structure in a call to the pfnAllocateCb function to create the allocation).
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows Vista and later versions of the Windows operating systems. |
Target Platform | Desktop |
Header | d3dumddi.h (include D3dumddi.h) |