2026-03-20 02:35:35 +08:00
|
|
|
|
# TextureImportSettings::SetMaxAnisotropy / GetMaxAnisotropy
|
|
|
|
|
|
|
|
|
|
|
|
```cpp
|
|
|
|
|
|
void SetMaxAnisotropy(Core::uint32 anisotropy);
|
|
|
|
|
|
Core::uint32 GetMaxAnisotropy() const;
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
设置或获取最大各向异性过滤级别。
|
|
|
|
|
|
|
|
|
|
|
|
**参数:**
|
|
|
|
|
|
- `anisotropy` - 各向异性级别(通常为 1, 2, 4, 8, 16)
|
|
|
|
|
|
|
|
|
|
|
|
**返回:** `Core::uint32` / `void`
|
|
|
|
|
|
|
|
|
|
|
|
**线程安全:** ✅
|
|
|
|
|
|
|
|
|
|
|
|
**示例:**
|
|
|
|
|
|
|
|
|
|
|
|
```cpp
|
|
|
|
|
|
TextureImportSettings settings;
|
|
|
|
|
|
settings.SetMaxAnisotropy(16);
|
|
|
|
|
|
Core::uint32 anisotropy = settings.GetMaxAnisotropy(); // 16
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## 相关文档
|
|
|
|
|
|
|
2026-03-26 02:41:00 +08:00
|
|
|
|
- [TextureImportSettings 总览](texture-import-settings.md) - 返回类总览
|