D3DKMTSetAllocationPriority 함수(d3dkmthk.h)

D3DKMTSetAllocationPriority 함수는 리소스 또는 할당 목록의 우선 순위 수준을 설정합니다.

구문

NTSTATUS D3DKMTSetAllocationPriority(
  [in] const D3DKMT_SETALLOCATIONPRIORITY *unnamedParam1
);

매개 변수

[in] unnamedParam1

리소스 또는 할당 목록의 우선 순위 수준을 설정하는 정보를 포함하는 D3DKMT_SETALLOCATIONPRIORITY 구조체에 대한 포인터입니다.

반환 값

D3DKMTSetAllocationPriority 는 다음 값 중 하나를 반환합니다.

반환 코드 설명
STATUS_SUCCESS 할당에 대한 우선 순위 수준이 성공적으로 설정되었습니다.
STATUS_DEVICE_REMOVED 그래픽 어댑터가 중지되었거나 디스플레이 디바이스가 다시 설정되었습니다.
STATUS_INVALID_PARAMETER 매개 변수의 유효성이 검사되었고 잘못된 것으로 확인되었습니다.

이 함수는 다른 NTSTATUS 값을 반환할 수도 있습니다.

설명

다음 코드 예제에서는 OpenGL ICD가 D3DKMTSetAllocationPriority 를 사용하여 리소스의 우선 순위 수준(따라서 리소스와 연결된 모든 할당)을 설정하는 방법을 보여 줍니다.

VOID SetResourcePriority(D3DKMT_HANDLE hDevice, D3DKMT_HANDLE hResource, UINT uiPriority)
{
    D3DKMT_SETALLOCATIONPRIORITY SetAllocationPriorityData;

    SetAllocationPriorityData.hDevice = hDevice;
    SetAllocationPriorityData.hResource = hResource;
    SetAllocationPriorityData.phAllocationList = NULL;
    SetAllocationPriorityData.AllocationCount = 0;
    SetAllocationPriorityData.Priorities = &uiPriority;

    (*pfnKTSetAllocationPriority)(&SetAllocationPriorityData);
}

요구 사항

요구 사항
지원되는 최소 클라이언트 Windows Vista
대상 플랫폼 유니버설
헤더 d3dkmthk.h(D3dkmthk.h 포함)
라이브러리 Gdi32.lib
DLL Gdi32.dll

추가 정보

D3DKMT_SETALLOCATIONPRIORITY