> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetResidencyPriority

> このメソッドは、指定されたオブジェクトのリストの常駐性の優先度を設定します。

このメソッドは、指定されたオブジェクトのリストの常駐性の優先度を設定します。

## 構文

```cpp theme={null}
HRESULT SetResidencyPriority(
    UINT NumObjects,
    ID3D12Pageable const  ppObjects,
    const D3D12_RESIDENCY_PRIORITY  pPriorities
)
```

### パラメーター

*NumObjects*<br />型: UINT

<i>ppObjects</i> および <i>pPriorities</i> 配列内のオブジェクトの数を指定します。

*ppObjects \[in]*<br />型: ID3D12Pageable \*const \*

[ID3D12Pageable](/reference/graphics/d3d12/interfaces/id3d12pageable/id3d12pageable_public) オブジェクトへの参照を含む、長さ <i>NumObjects</i> の配列を指定します。

*pPriorities \[in]*<br />型: const D3D12\_RESIDENCY\_PRIORITY \*

オブジェクト リストに対する [D3D12\_RESIDENCY\_PRIORITY](/reference/graphics/d3d12/enums/d3d12_residency_priority_public) 値の、長さ <i>NumObjects</i> の配列を指定します。

### 戻り値

型: HRESULT

このメソッドは HRESULT の成功またはエラー コードを返します。

## 解説

詳細については、[レジデンシー](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/residency) を参照してください。

## 要件

**ヘッダー:** d3d12\_xs.h または d3d12\_x.h<br />**ライブラリ:** d3d12\_xs.lib または d3d12\_x.lib<br />**サポートされているプラットフォーム**: XBOX Series 本体および XBOX One ファミリ

## 関連項目

[ID3D12Device1](/reference/graphics/d3d12/interfaces/id3d12device1/id3d12device1_public)


## Related topics

- [D3D12_RESIDENCY_PRIORITY](/ja-jp/reference/graphics/d3d12/enums/d3d12_residency_priority_public.md)
- [DSTORAGE_PRIORITY](/ja-jp/reference/system/dstorage/enums/dstorage_priority.md)
- [D3D12_RESIDENCY_FLAGS](/ja-jp/reference/graphics/d3d12/enums/d3d12_residency_flags_public.md)
- [DSTORAGE_PRIORITY_STATS](/ja-jp/reference/system/dstorage/structs/dstorage_priority_stats.md)
- [XAppCaptureMetadataPriority](/ja-jp/reference/system/xappcapture/enums/xappcapturemetadatapriority.md)
