Files
XCSDD/docs/api/resources/texture/generatemipmaps.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- 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
2026-03-19 12:44:08 +08:00

25 lines
490 B
Markdown

# Texture::GenerateMipmaps
```cpp
bool GenerateMipmaps()
```
生成纹理的 Mipmap 链。根据基础级别纹理自动生成所有下采样级别,用于纹理在缩小渲染时避免闪烁。
**参数:**
**返回:** 生成成功返回 true
**复杂度:** O(n)
**示例:**
```cpp
tex.Create(1024, 1024, 1, 1, TextureType::Texture2D, TextureFormat::RGBA8_UNORM, data, size);
tex.GenerateMipmaps();
```
## 相关文档
- [Texture 总览](texture.md) - 返回类总览