> ## 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.

# GetHeapProperties

> 배치된 리소스와 커밋된 리소스에 대해 리소스 힙의 속성을 검색합니다.

배치된 리소스와 커밋된 리소스에 대해 리소스 힙의 속성을 검색합니다.

## 구문

```cpp theme={null}
HRESULT GetHeapProperties(
    D3D12_HEAP_PROPERTIES  pHeapProperties,
    D3D12_HEAP_FLAGS  pHeapFlags
)
```

### 매개 변수

*pHeapProperties \[out, optional]*<br />형식: D3D12\_HEAP\_PROPERTIES \*

메서드가 성공적으로 완료되면 리소스 힙 속성을 포함할 [D3D12\_HEAP\_PROPERTIES](/reference/graphics/d3d12/structs/d3d12_heap_properties_public) 구조체에 대한 포인터입니다.

*pHeapFlags \[out, optional]*<br />형식: D3D12\_HEAP\_FLAGS \*

메서드가 성공적으로 완료되면 기타 힙 플래그를 포함할 [D3D12\_HEAP\_FLAGS](/reference/graphics/d3d12_x/enums/d3d12_heap_flags) 변수를 지정합니다.

### 반환 값

형식: HRESULT

이 메서드는 [Direct3D 12 반환 코드](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/d3d12-graphics-reference-returnvalues) 중 하나를 반환합니다. 리소스가 예약된 것으로 생성된 경우 E\_INVALIDARG가 반환됩니다.

## 설명

이 메서드는 배치된 리소스와 커밋된 리소스에만 작동하며, 예약된 리소스에는 작동하지 않습니다. 리소스가 예약된 것으로 생성된 경우 E\_INVALIDARG가 반환됩니다. 페이지는 힙에 매핑되지 않을 수도 있고, 하나 이상의 힙에 매핑될 수도 있습니다.

자세한 내용은 [Direct3D 12의 메모리 관리](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/memory-management)를 참조하세요.

## 요구 사항

**헤더:** d3d12\_xs.h 또는 d3d12\_x.h<br />**라이브러리:** d3d12\_xs.lib 또는 d3d12\_x.lib<br />**지원 플랫폼**: XBOX Series 콘솔 및 XBOX One 제품군

## 함께 보기

[ID3D12Resource](/reference/graphics/d3d12_xs/interfaces/ID3D12Resource/id3d12resource_xs)


## Related topics

- [D3D12_HEAP_TYPE](/ko/reference/graphics/d3d12/enums/d3d12_heap_type_public.md)
- [D3D12_CPU_PAGE_PROPERTY](/ko/reference/graphics/d3d12/enums/d3d12_cpu_page_property_public.md)
- [XMemGetTitleHeap](/ko/reference/system/xmem/functions/xmemgettitleheap.md)
- [ApuHeapGetState](/ko/reference/audio/apu/functions/apuheapgetstate.md)
- [XMemGetWin32HeapName](/ko/reference/system/xmem/functions/xmemgetwin32heapname.md)
