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

# D3D12_DISCARD_REGION

> 리소스 폐기(discard) 작업의 세부 정보를 설명합니다.

리소스 폐기(discard) 작업의 세부 정보를 설명합니다.

## 구문

```cpp theme={null}
typedef struct D3D12_DISCARD_REGION
{
    UINT NumRects;
    const D3D12_RECT  pRects;
    UINT FirstSubresource;
    UINT NumSubresources;
} D3D12_DISCARD_REGION
```

### 멤버

*NumRects*\
형식: UINT

**pRects** 멤버가 지정하는 배열의 사각형 수입니다.

*pRects*\
형식: const D3D12\_RECT \*

폐기할 리소스의 사각형에 대한 **D3D12\_RECT** 구조체의 배열입니다.
**NULL**이면 [DiscardResource](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_discardresource_public)가 전체 리소스를 폐기합니다.

*FirstSubresource*\
형식: UINT

폐기할 리소스의 첫 번째 하위 리소스 인덱스입니다.

*NumSubresources*\
형식: UINT

폐기할 리소스의 하위 리소스 수입니다.

## 설명

이 구조체는 [ID3D12GraphicsCommandList::DiscardResource](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_discardresource_public) 메서드에서 사용됩니다.

이 구조체에서 사각형을 제공하는 경우, 리소스에는 지정된 모든 하위 리소스가 동일한 차원의 2D 하위 리소스여야 합니다.

## 요구 사항

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

## 관련 항목

[핵심 구조체](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

- [D3D12_MIP_REGION](/ko/reference/graphics/d3d12/structs/d3d12_mip_region_public.md)
- [D3D12_TILE_REGION_SIZE](/ko/reference/graphics/d3d12/structs/d3d12_tile_region_size_public.md)
- [D3D12_BOX](/ko/reference/graphics/d3d12/structs/d3d12_box_public.md)
- [D3D12_RESOLVE_MODE](/ko/reference/graphics/d3d12/enums/d3d12_resolve_mode_public.md)
- [D3D12_RESOURCE_DESC1](/ko/reference/graphics/d3d12/structs/d3d12_resource_desc1_public.md)
