Bewerken

Delen via


D3DDDICB_DEALLOCATE2 structure (d3dumddi.h)

The D3DDDICB_DEALLOCATE2 structure describes parameters for releasing allocations with pfnDeallocate2Cb

Syntax

typedef struct _D3DDDICB_DEALLOCATE2 {
  [in] HANDLE                           hResource;
  [in] UINT                             NumAllocations;
  [in] const D3DKMT_HANDLE              *HandleList;
  [in] D3DDDICB_DESTROYALLOCATION2FLAGS Flags;
} D3DDDICB_DEALLOCATE2;

Members

[in] hResource

A handle to a resource whose associated allocations must be released. If the user-mode display driver uses the array that is specified by HandleList to specify the allocations to release, it sets hResource to NULL.

[in] NumAllocations

The number of allocations in the HandleList array. If the user-mode display driver sets the handle in the hResource member to non-NULL, NumAllocations is ignored by the Direct3D runtime.

[in] HandleList

An array of D3DKMT_HANDLE data types that represent kernel-mode handles to the allocations. The Direct3D runtime's pfnAllocateCb function returns these handles. Therefore, the user-mode display driver uses these handles to release the allocations.

If the user-mode display driver sets the handle in the hResource member to non-NULL, HandleList is ignored by the Direct3D runtime.

[in] Flags

A D3DDDICB_DESTROYALLOCATION2FLAGS structure that contains additional details about the operation.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Header d3dumddi.h (include D3dumddi.h)

See also

D3DDDICB_DESTROYALLOCATION2FLAGS

pfnDeallocate2Cb