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

# CreateRenderTargetView

> 리소스 데이터에 액세스하기 위한 렌더 타깃 뷰를 만듭니다. (ID3D12Device.CreateRenderTargetView)

리소스 데이터에 액세스하기 위한 렌더 타깃 뷰를 만듭니다.

## 구문

```cpp theme={null}
void CreateRenderTargetView(
    ID3D12Resource  pResource,
    const D3D12_RENDER_TARGET_VIEW_DESC  pDesc,
    D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor
)
```

### 매개 변수

*pResource \[in, optional]*\
형식: ID3D12Resource \*

렌더 타깃을 나타내는 [ID3D12Resource](/reference/graphics/d3d12_xs/interfaces/ID3D12Resource/id3d12resource_xs) 객체에 대한 포인터입니다.

<i>pResource</i> 또는 <i>pDesc</i> 중 하나 이상을 제공해야 합니다.
null <i>pResource</i>는 D3D11과 유사한 null 바인딩 동작(0 읽기, 쓰기는 무시됨)을 보장하는 null 디스크립터를 초기화하는 데 사용되지만, 디스크립터 유형을 결정하기 위해 유효한 <i>pDesc</i>가 있어야 합니다.

*pDesc \[in, optional]*\
형식: const D3D12\_RENDER\_TARGET\_VIEW\_DESC \*

렌더 타깃 뷰를 설명하는 [D3D12\_RENDER\_TARGET\_VIEW\_DESC](/reference/graphics/d3d12/structs/d3d12_render_target_view_desc_public) 구조체에 대한 포인터입니다.

null <i>pDesc</i>는 가능한 경우 기본 디스크립터를 초기화하는 데 사용됩니다. 이 동작은 기본값이 채워지는 D3D11 null 디스크립터 동작과 동일합니다. 이 동작은 리소스 형식과 차원(typeless가 아닌 경우)을 상속하며, RTV는 첫 번째 밉과 모든 배열 슬라이스를 대상으로 합니다. 모든 리소스가 null 디스크립터 초기화를 지원하는 것은 아닙니다.

*DestDescriptor \[in]*\
형식: D3D12\_CPU\_DESCRIPTOR\_HANDLE

새로 생성된 렌더 타깃 뷰가 상주할 대상을 나타내는 CPU 디스크립터 핸들을 설명합니다.

### 반환 값

형식: void

없음.

## 요구 사항

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

## 함께 보기

[ID3D12Device](/reference/graphics/d3d12_x/interfaces/id3d12device/id3d12device)


## Related topics

- [D3D12_RENDER_TARGET_VIEW_DESC](/ko/reference/graphics/d3d12/structs/d3d12_render_target_view_desc_public.md)
- [D3D12_CPU_DESCRIPTOR_HANDLE](/ko/reference/graphics/d3d12/structs/d3d12_cpu_descriptor_handle_public.md)
- [D3D12_RTV_DIMENSION](/ko/reference/graphics/d3d12/enums/d3d12_rtv_dimension_public.md)
- [OMSetRenderTargets](/ko/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_omsetrendertargets_public.md)
- [D3D12_VIEW_INSTANCE_LOCATION](/ko/reference/graphics/d3d12/structs/d3d12_view_instance_location_public.md)
