Skip to content

Latest commit

 

History

History
92 lines (70 loc) · 4.06 KB

ns-d3dkmthk-_d3dkmt_setallocationpriority.md

File metadata and controls

92 lines (70 loc) · 4.06 KB
UID title description old-location ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos tech.root req.typenames f1_keywords topic_type api_type api_location api_name
NS:d3dkmthk._D3DKMT_SETALLOCATIONPRIORITY
_D3DKMT_SETALLOCATIONPRIORITY (d3dkmthk.h)
The D3DKMT_SETALLOCATIONPRIORITY structure describes the priority level to set a resource or list of allocations to.
display\d3dkmt_setallocationpriority.htm
05/10/2018
D3DKMT_SETALLOCATIONPRIORITY structure
D3DKMT_SETALLOCATIONPRIORITY, D3DKMT_SETALLOCATIONPRIORITY structure [Display Devices], OpenGL_Structs_9afc3b7a-fcd5-4fb4-bfb9-5e752b225a4e.xml, _D3DKMT_SETALLOCATIONPRIORITY, d3dkmthk/D3DKMT_SETALLOCATIONPRIORITY, display.d3dkmt_setallocationpriority
d3dkmthk.h
D3dkmthk.h
Windows
Windows Vista
Windows
display
D3DKMT_SETALLOCATIONPRIORITY
_D3DKMT_SETALLOCATIONPRIORITY
d3dkmthk/_D3DKMT_SETALLOCATIONPRIORITY
D3DKMT_SETALLOCATIONPRIORITY
d3dkmthk/D3DKMT_SETALLOCATIONPRIORITY
APIRef
kbSyntax
HeaderDef
d3dkmthk.h
_D3DKMT_SETALLOCATIONPRIORITY
D3DKMT_SETALLOCATIONPRIORITY

_D3DKMT_SETALLOCATIONPRIORITY structure

-description

The D3DKMT_SETALLOCATIONPRIORITY structure describes the priority level to set a resource or list of allocations to.

-struct-fields

-field hDevice [in]

A D3DKMT_HANDLE data type that represents a kernel-mode handle to the device that the resource or list of allocations are associated with.

-field hResource [in]

A handle to a resource whose priority must be set. If the OpenGL ICD uses the array that phAllocationList specifies to set the priority for the list of allocations, it sets hResource to NULL. If the OpenGL ICD sets hResource to a non-NULL value, it must set the AllocationCount member to zero and phAllocationList to NULL.

If hResource is non-NULL, all of the allocations that belong to the resource are set to the priority that is specified by the first element in the array that pPriorities points to.

-field phAllocationList [in]

An array of D3DKMT_HANDLE data types that represent kernel-mode handles to the allocations. If the OpenGL ICD sets the handle in the hResource member to a non-NULL value, it must set phAllocationList to NULL.

-field AllocationCount [in]

The number of allocations in the array that phAllocationList specifies. If the OpenGL ICD sets the handle in the hResource member to a non-NULL value, it must set AllocationCount to zero.

-field pPriorities [in]

A pointer to an array of priority levels. If the hResource member is non-NULL, the array must contain a single element. If hResource is NULL, the number of elements in the array is specified by the AllocationCount member, and each allocation in the array that phAllocationList specifies is set to the priority level of the corresponding element in pPriorities.

Each element in pPriorities can be set to one of the following values.

Enumerator Meaning
D3DDDI_ALLOCATIONPRIORITY_MINIMUM (0x28000000) Minimum priority
D3DDDI_ALLOCATIONPRIORITY_LOW (0x50000000) Low priority
D3DDDI_ALLOCATIONPRIORITY_NORMAL (0x78000000) Normal priority
D3DDDI_ALLOCATIONPRIORITY_HIGH (0xa0000000) High priority
D3DDDI_ALLOCATIONPRIORITY_MAXIMUM (0xc8000000) Maximum priority

For more information about the meanings of the preceding values, see the Remarks section of the pfnSetPriorityCb function.

-see-also

D3DKMTSetAllocationPriority