Bewerken

Delen via


PFN_IDDCXSWAPCHAINRELEASEANDACQUIREBUFFER2 callback function (iddcx.h)

PFN_IDDCXSWAPCHAINRELEASEANDACQUIREBUFFER2 is a pointer to an OS callback function that releases the buffer from the swap chain and acquires a new buffer.

Syntax

PFN_IDDCXSWAPCHAINRELEASEANDACQUIREBUFFER2 PfnIddcxswapchainreleaseandacquirebuffer2;

HRESULT * PfnIddcxswapchainreleaseandacquirebuffer2(
  PIDD_DRIVER_GLOBALS DriverGlobals,
  IDDCX_SWAPCHAIN SwapChainObject,
  IDARG_IN_RELEASEANDACQUIREBUFFER2 *pInArgs,
  IDARG_OUT_RELEASEANDACQUIREBUFFER2 *pOutArgs
)
{...}

Parameters

DriverGlobals

[in] Contains system-defined per-driver data.

SwapChainObject

[in] The swap chain object that the buffer is associated with.

pInArgs

[in] Input arguments for the function.

pOutArgs

[out] Output arguments for the function.

Return value

PFN_IDDCXSWAPCHAINRELEASEANDACQUIREBUFFER2 returns an NTSTATUS value that indicates the success or failure of the function.

Remarks

An indirect display driver (IDD) shouldn't use this function pointer to directly. IDDs should instead call IddCxSwapChainReleaseAndAcquireBuffer2.

Requirements

Requirement Value
Minimum supported client Windows 11, version 22H2 September Update (IddCx version 1.10)
Header iddcx.h

See also

IddCxSwapChainReleaseAndAcquireBuffer2