D3DDDI_MAKERESIDENT - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3dukmdt.h

typedef struct D3DDDI_MAKERESIDENT {
  [in]     D3DKMT_HANDLE             hPagingQueue;
  [in/out] UINT                      NumAllocations;
  [in]     const D3DKMT_HANDLE       *AllocationList;
  [in]     const UINT                *PriorityList;
  [in]     D3DDDI_MAKERESIDENT_FLAGS Flags;
  [out]    D3DKMT_ALIGN64 UINT64     PagingFenceValue;
  [out]    D3DKMT_ALIGN64 UINT64     NumBytesToTrim;
} D3DDDI_MAKERESIDENT;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-d3dukmdt-d3dddi_makeresident)

D3DDDI_MAKERESIDENT structure

Description

D3DDDI_MAKERESIDENT is used with MakeResident (pfnMakeResidentCb or D3DKMTMakeResident) to instruct the OS to add a resource to the device residency list and increment the residency reference count on this allocation.

Members

hPagingQueue [in]

Paging queue on the device that created the input allocations. This queue will be used for residency operations.

NumAllocations [in/out]

On input, the number of allocation handles in the AllocationList array and allocation priority values in the PriorityList array. On output, the number of allocations successfully made resident.

AllocationList [in]

An array of NumAllocations allocation handles to make resident. All allocations must be created on the device hPagingQueue is created for.

PriorityList [in]

An array of NumAllocations specifying residency priority for each of the input allocations. This value is currently ignored and may be set to NULL.

Flags [in]

Specifies memory residency behavior as documented in D3DDDI_MAKERESIDENT_FLAGS.

PagingFenceValue [out]

When MakeResident returns E_PENDING, this member indicates the paging queue fence value to wait on.

NumBytesToTrim [out]

When MakeResident returns E_OUTOFMEMORY, this member indicates the number of bytes over budget the application would be if the allocation(s) were made resident.

See also

D3DDDI_MAKERESIDENT_FLAGS

D3DKMTMakeResident

pfnMakeResidentCb