DXGKARG_DESTROYALLOCATION structure (d3dkmddi.h)

The DXGKARG_DESTROYALLOCATION structure describes how the display miniport driver should release allocations.

Syntax

typedef struct _DXGKARG_DESTROYALLOCATION {
  [in]     UINT                        NumAllocations;
  [in]     const HANDLE                *pAllocationList;
  [in/out] HANDLE                      hResource;
  [in]     DXGK_DESTROYALLOCATIONFLAGS Flags;
} DXGKARG_DESTROYALLOCATION;

Members

[in] NumAllocations

The number of elements in the array that pAllocationList specifies, which represents the number of allocations to release.

[in] pAllocationList

An array of handles to the allocations to release.

[in/out] hResource

A handle to a resource. The display miniport driver cleans up this handle if it must release the resource along with the allocations.

[in] Flags

A DXGK_DESTROYALLOCATIONFLAGS structure that identifies how to release the allocations.

Remarks

The handles in the array that the pAllocationList member specifies are handles to allocations that the driver's DxgkDdiCreateAllocation function previously returned in the hAllocation members of DXGK_ALLOCATIONINFO structures, which are part of the DXGKARG_CREATEALLOCATION structure's pAllocationInfo member. Each allocation handle points to a buffer that contains private driver data for the allocation. The display miniport driver must release the memory for the allocations during the call to DxgkDdiDestroyAllocation.

Requirements

Requirement Value
Minimum supported client Windows Vista
Header d3dkmddi.h (include D3dkmddi.h)

See also

DXGKARG_CREATEALLOCATION

DXGK_ALLOCATIONINFO

DXGK_DESTROYALLOCATIONFLAGS

DxgkDdiCreateAllocation

DxgkDdiDestroyAllocation