- Fix link resolution with proper relative/absolute path handling - Improve link styling with underline decoration - Hide leaf nodes from tree, only show directories - Fix log file path for packaged app
40 lines
903 B
Markdown
40 lines
903 B
Markdown
# D3D12RootSignature::CreateSRV
|
||
|
||
## 函数签名
|
||
|
||
```cpp
|
||
static D3D12_ROOT_PARAMETER CreateSRV(uint32_t shaderRegister, ShaderVisibility visibility = ShaderVisibility::All, uint32_t registerSpace = 0)
|
||
```
|
||
|
||
## 中文描述
|
||
|
||
创建着色器资源视图(SRV)根参数。
|
||
|
||
## 参数
|
||
|
||
| 参数 | 类型 | 描述 |
|
||
|------|------|------|
|
||
| `shaderRegister` | `uint32_t` | 着色器寄存器编号 |
|
||
| `visibility` | `ShaderVisibility` | 可见性(默认 All) |
|
||
| `registerSpace` | `uint32_t` | 寄存器空间(默认 0) |
|
||
|
||
## 返回值
|
||
|
||
`D3D12_ROOT_PARAMETER` - 根参数
|
||
|
||
## 复杂度
|
||
|
||
O(1)
|
||
|
||
## 示例
|
||
|
||
```cpp
|
||
D3D12_ROOT_PARAMETER srvParam = D3D12RootSignature::CreateSRV(0);
|
||
```
|
||
|
||
## 相关文档
|
||
|
||
- [D3D12RootSignature](root-signature.md) - 类总览
|
||
- [D3D12RootSignature::CreateCBV](create-cbv.md) - 创建 CBV 根参数
|
||
- [D3D12RootSignature::CreateUAV](create-uav.md) - 创建 UAV 根参数
|