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