docs: update RHI API docs

This commit is contained in:
2026-03-20 02:35:45 +08:00
parent ea756c0177
commit 070b444f8f
501 changed files with 13493 additions and 2022 deletions

View File

@@ -0,0 +1,39 @@
# D3D12Shader::SetVec4
## 函数签名
```cpp
void SetVec4(const char* name, float x, float y, float z, float w) override
```
## 中文描述
设置着色器中的四维向量 uniform 变量。当前实现为空stub
## 参数
| 参数 | 类型 | 描述 |
|------|------|------|
| `name` | `const char*` | 变量名称 |
| `x` | `float` | 向量 X 分量 |
| `y` | `float` | 向量 Y 分量 |
| `z` | `float` | 向量 Z 分量 |
| `w` | `float` | 向量 W 分量 |
## 返回值
## 示例
```cpp
shader->SetVec4("color", 1.0f, 0.0f, 0.0f, 1.0f);
```
## 相关文档
- [D3D12Shader](shader.md) - 类总览
- [SetInt](set-int.md) - 设置整型 uniform
- [SetFloat](set-float.md) - 设置浮点型 uniform
- [SetVec3](set-vec3.md) - 设置 Vec3 uniform
- [SetMat4](set-mat4.md) - 设置矩阵 uniform