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

# CreateSampler

> テクスチャのサンプリング情報をカプセル化するサンプラー オブジェクトを作成します。

テクスチャのサンプリング情報をカプセル化するサンプラー オブジェクトを作成します。

## 構文

```cpp theme={null}
void CreateSampler(
    const D3D12_SAMPLER_DESC  pDesc,
    D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor
)
```

### パラメーター

*pDesc \[in]*\
型: const D3D12\_SAMPLER\_DESC \*

サンプラーを記述する [D3D12\_SAMPLER\_DESC](/reference/graphics/d3d12/structs/d3d12_sampler_desc_public) 構造体へのポインター。

*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_SAMPLER_DESC](/ja-jp/reference/graphics/d3d12/structs/d3d12_sampler_desc_public.md)
- [D3D12_CPU_DESCRIPTOR_HANDLE](/ja-jp/reference/graphics/d3d12/structs/d3d12_cpu_descriptor_handle_public.md)
- [XBOX Series X|S での Sampler Feedback と SFS](/ja-jp/build/core-features/graphics/newfeatures/sfs/index.md)
- [D3D12_STATIC_SAMPLER_DESC](/ja-jp/reference/graphics/d3d12/structs/d3d12_static_sampler_desc_public.md)
- [D3D12_ROOT_SIGNATURE_DESC1](/ja-jp/reference/graphics/d3d12/structs/d3d12_root_signature_desc1_public.md)
