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
対象プラットフォーム ユニバーサル
Header d3dkmthk.h (D3dkmthk.h を含む)
Library Gdi32.lib
[DLL] Gdi32.dll

こちらもご覧ください

D3DKMT_SETALLOCATIONPRIORITY