docs: update RHI API docs
This commit is contained in:
21
docs/api/rhi/opengl/texture/set-format.md
Normal file
21
docs/api/rhi/opengl/texture/set-format.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# OpenGLTexture::SetFormat
|
||||
|
||||
```cpp
|
||||
void SetFormat(Format format)
|
||||
```
|
||||
|
||||
设置纹理格式。
|
||||
|
||||
**参数:**
|
||||
- `format` - 纹理格式(`Format` 枚举值)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
texture.SetFormat(Format::R8G8B8A8_UNorm);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [OpenGLTexture](texture.md) - 返回类总览
|
||||
- [GetFormat](../../texture/get-format.md) - 获取纹理格式
|
||||
Reference in New Issue
Block a user