> ## 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](/ko/reference/graphics/d3d12/enums/d3d12_residency_priority_public.md)
- [DSTORAGE_PRIORITY](/ko/reference/system/dstorage/enums/dstorage_priority.md)
- [D3D12_RESIDENCY_FLAGS](/ko/reference/graphics/d3d12/enums/d3d12_residency_flags_public.md)
- [DSTORAGE_PRIORITY_STATS](/ko/reference/system/dstorage/structs/dstorage_priority_stats.md)
- [XAppCaptureMetadataPriority](/ko/reference/system/xappcapture/enums/xappcapturemetadatapriority.md)
