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

# CreateGraphicsPipelineState

> 그래픽 파이프라인 상태 객체를 만듭니다.

그래픽 파이프라인 상태 객체를 만듭니다.

## 구문

```cpp theme={null}
HRESULT CreateGraphicsPipelineState(
    const D3D12_GRAPHICS_PIPELINE_STATE_DESC  pDesc,
    const IID & riid,
    void  ppPipelineState
)
```

### 매개 변수

*pDesc \[in]*\
형식: const D3D12\_GRAPHICS\_PIPELINE\_STATE\_DESC \*

그래픽 파이프라인 상태를 설명하는 [D3D12\_GRAPHICS\_PIPELINE\_STATE\_DESC](/reference/graphics/d3d12_x/structs/d3d12_graphics_pipeline_state_desc) 구조체에 대한 포인터입니다.

*riid*\
형식: const IID &

파이프라인 상태 인터페이스([ID3D12PipelineState](/reference/graphics/d3d12_xs/interfaces/ID3D12PipelineState/id3d12pipelinestate_xs))의 전역 고유 식별자(**GUID**)입니다.
파이프라인 상태에 대한 인터페이스의 **REFIID** 또는 **GUID**는 \_\_uuidof() 매크로를 사용하여 얻을 수 있습니다.
예를 들어, \_\_uuidof(ID3D12PipelineState)는 파이프라인 상태에 대한 인터페이스의 **GUID**를 가져옵니다.

*ppPipelineState \[out]*\
형식: void \*\*

파이프라인 상태 객체에 대한 [ID3D12PipelineState](/reference/graphics/d3d12_xs/interfaces/ID3D12PipelineState/id3d12pipelinestate_xs) 인터페이스에 대한 포인터를 받는 메모리 블록에 대한 포인터입니다.
파이프라인 상태 객체는 변경 불가능한 상태 객체입니다. 메서드를 포함하지 않습니다.

### 반환 값

형식: HRESULT

파이프라인 상태 객체를 만들 메모리가 부족한 경우 이 메서드는 **E\_OUTOFMEMORY**를 반환합니다.
다른 가능한 반환 값은 [Direct3D 12 반환 코드](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/d3d12-graphics-reference-returnvalues)를 참조하세요.

## 요구 사항

**헤더:** 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

- [CreateComputePipelineState](/ko/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createcomputepipelinestate_public.md)
- [D3D12_COMPUTE_PIPELINE_STATE_DESC](/ko/reference/graphics/d3d12/structs/d3d12_compute_pipeline_state_desc_public.md)
- [D3D12_PIPELINE_STATE_STREAM_DESC](/ko/reference/graphics/d3d12/structs/d3d12_pipeline_state_stream_desc_public.md)
- [CreatePipelineLibrary](/ko/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_createpipelinelibrary_public.md)
- [LoadGraphicsPipeline](/ko/reference/graphics/d3d12/interfaces/id3d12pipelinelibrary/methods/id3d12pipelinelibrary_loadgraphicspipeline_public.md)
