struttura D3DKMT_OFFERALLOCATIONS (d3dkmthk.h)

Definisce le allocazioni di memoria video offerte dal driver per il riutilizzo. Usato con la funzione D3DKMTOfferAllocations .

Sintassi

typedef struct _D3DKMT_OFFERALLOCATIONS {
  [in] D3DKMT_HANDLE         hDevice;
  [in] D3DKMT_HANDLE         *pResources;
  [in] const D3DKMT_HANDLE   *HandleList;
  [in] UINT                  NumAllocations;
  [in] D3DKMT_OFFER_PRIORITY Priority;
       D3DKMT_OFFER_FLAGS    Flags;
} D3DKMT_OFFERALLOCATIONS;

Members

[in] hDevice

Tipo di dati D3DKMT_HANDLE che rappresenta un handle in modalità kernel per il dispositivo che ha creato le allocazioni.

[in] pResources

Matrice di handle di runtime Direct3D per le risorse da offrire.

Se il driver in modalità utente usa la matrice specificata da HandleList per offrire un elenco di allocazioni, deve impostare pResources su NULL. Viceversa, se il driver usa la matrice specificata da pResources per offrire un elenco di risorse, deve impostare HandleList su NULL.

[in] HandleList

Matrice di D3DKMT_HANDLE tipi di dati che rappresentano handle in modalità kernel alle allocazioni da offrire.

Se le risorse sono state create con il valore del flag D3D10_DDI_BIND_PRESENT impostato in pCreateResource-BindFlags>, offrire le risorse dagli handle di allocazione, non dagli handle di risorsa.

[in] NumAllocations

Numero di elementi nei membri pResources o HandleList , indipendentemente dal fatto che non sia NULL.

[in] Priority

Priorità, di tipo D3DKMT_OFFER_PRIORITY, con cui offrire le allocazioni per il riutilizzo.

Flags

Opzioni flag.

Requisiti

Requisito Valore
Client minimo supportato Windows 8
Server minimo supportato Windows Server 2012
Intestazione d3dkmthk.h (include D3dkmthk.h)

Vedi anche

D3DKMTOfferAllocations

D3DKMT_OFFER_PRIORITY