Condividi tramite


struttura D3DKMT_QUERYALLOCATIONRESIDENCY (d3dkmthk.h)

La struttura D3DKMT_QUERYALLOCATIONRESIDENCY descrive le informazioni per recuperare lo stato di residenza da una risorsa o un elenco di allocazioni.

Sintassi

typedef struct _D3DKMT_QUERYALLOCATIONRESIDENCY {
  [in]  D3DKMT_HANDLE hDevice;
  [in]  D3DKMT_HANDLE hResource;
  void          D3DKMT_PTR(
    const D3DKMT_HANDLE *unnamedParam1,
    phAllocationList    unnamedParam2
  );
  [in]  UINT          AllocationCount;
  void          D3DKMT_PTR(
    D3DKMT_ALLOCATIONRESIDENCYSTATUS *unnamedParam1,
    pResidencyStatus                 unnamedParam2
  );
} D3DKMT_QUERYALLOCATIONRESIDENCY;

Members

[in] hDevice

Tipo di dati D3DKMT_HANDLE che rappresenta un handle in modalità kernel per il dispositivo a cui è associata la risorsa o l'elenco di allocazioni.

[in] hResource

Handle per una risorsa di cui viene eseguita una query sulla residenza. Se la progettazione immagine e configurazione OpenGL usa la matrice specificata da phAllocationList per eseguire una query per la residenza, hResource viene impostata su NULL. Se OpenGL ICD imposta hResource su un valore non NULL , deve impostare il membro AllocationCount su zero e phAllocationList su NULL.

Se hResource è diverso da NULL, vengono eseguite query su tutte le allocazioni che appartengono alla risorsa e il risultato viene restituito nel primo elemento della matrice a cui punta pResidencyStatus .

Se un'allocazione appartenente alla risorsa non è residente, l'intera risorsa viene considerata non residente.

Per recuperare informazioni dettagliate sulla residenza su ogni allocazione appartenente a una risorsa, è necessario eseguire una query sull'allocazione.

void D3DKMT_PTR( const D3DKMT_HANDLE *unnamedParam1, phAllocationList unnamedParam2)

[in] AllocationCount

Numero di allocazioni nella matrice specificata da phAllocationList . Se OpenGL ICD imposta l'handle nel membro hResource su un valore non NULL , deve impostare AllocationCount su zero.

void D3DKMT_PTR( D3DKMT_ALLOCATIONRESIDENCYSTATUS *unnamedParam1, pResidencyStatus unnamedParam2)

Requisiti

Requisito Valore
Client minimo supportato Windows Vista
Intestazione d3dkmthk.h (include D3dkmthk.h)

Vedi anche

D3DKMTQueryAllocationResidency