Presents a rendered image to the user.
public:
HRESULT Present1(
UINT SyncInterval,
UINT PresentFlags,
const DXGI_PRESENT_PARAMETERS *pPresentParameters
)
SyncInterval
Type: UINT
An integer that specifies how to synchronize presentation of a frame with the vertical blank. For the bit-block transfer (bitblt) model (DXGI_SWAP_EFFECT_DISCARD or DXGI_SWAP_EFFECT_SEQUENTIAL), values are:
For the flip model (DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL), values are:
For an example that shows how sync-interval values affect a flip presentation queue, see Remarks.
If the update region straddles more than one output (each represented by IDXGIOutput), Present1 performs the synchronization to the output that contains the largest subrectangle of the target window’s client area.
PresentFlags
Type: UINT
An integer value that contains swap-chain presentation options. These options are defined by the DXGI_PRESENT constants, including the additional DXGI_PRESENT constants that are documented in the Flags parameter of DXGIXPresentArray.
pPresentParameters
Type: DXGI_PRESENT_PARAMETERS *
[in] The presentation parameters, as a pointer to DXGI_PRESENT_PARAMETERS.
Type: HRESULT
Returns one of the following DXGI_ERROR.
The recommended present method for Xbox One is DXGIXPresentArray.
For more information about using Present1, see IDXGISwapChain::Present.
Header: Declared in d3d11_x.h (dxgi1_2.h on other Windows platforms).
Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).