Condividi tramite


struttura D3DKMT_SETALLOCATIONPRIORITY (d3dkmthk.h)

La struttura D3DKMT_SETALLOCATIONPRIORITY descrive il livello di priorità per impostare una risorsa o un elenco di allocazioni su .

Sintassi

typedef struct _D3DKMT_SETALLOCATIONPRIORITY {
  [in] D3DKMT_HANDLE hDevice;
  [in] D3DKMT_HANDLE hResource;
  void          D3DKMT_PTR(
    const D3DKMT_HANDLE *unnamedParam1,
    phAllocationList    unnamedParam2
  );
  [in] UINT          AllocationCount;
  void          D3DKMT_PTR(
    const UINT  *unnamedParam1,
    pPriorities unnamedParam2
  );
} D3DKMT_SETALLOCATIONPRIORITY;

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 la cui priorità deve essere impostata. Se OpenGL ICD usa la matrice specificata da phAllocationList per impostare la priorità per l'elenco di allocazioni, imposta hResource 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, tutte le allocazioni che appartengono alla risorsa vengono impostate sulla priorità specificata dal primo elemento nella matrice a cui fa riferimento pPriorities .

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( const UINT *unnamedParam1, pPriorities unnamedParam2)

Requisiti

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

Vedi anche

D3DKMTSetAllocationPriority