30 lines
316 B
Markdown
30 lines
316 B
Markdown
|
|
# D3D12Sampler::GetID
|
||
|
|
|
||
|
|
## 函数签名
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
unsigned int GetID() override
|
||
|
|
```
|
||
|
|
|
||
|
|
## 中文描述
|
||
|
|
|
||
|
|
获取采样器唯一标识符。
|
||
|
|
|
||
|
|
## 返回值
|
||
|
|
|
||
|
|
`unsigned int` - 采样器 ID
|
||
|
|
|
||
|
|
## 复杂度
|
||
|
|
|
||
|
|
O(1)
|
||
|
|
|
||
|
|
## 示例
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
unsigned int id = sampler->GetID();
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [D3D12Sampler](sampler.md) - 类总览
|