Engine modules: - Audio: remove AudioSource/Listener components (they belong in Components/), add IAudioEffect.h - Components: add AudioSourceComponent.h and AudioListenerComponent.h - Math: remove non-existent OBB.h - Resources: fix DependencyGraph.h -> ResourceDependencyGraph.h - Threading: add TaskSystemConfig.h - RHI: remove incorrect RHIDescriptor.h (already covered by RHIDescriptorPool.h) Backend fixes: - OpenGL: add OpenGLScreenshot.h - D3D12: fix file order (D3D12Enum.h before D3D12Types.h)
601 B
601 B
TextureImportSettings::SetMaxAnisotropy / GetMaxAnisotropy
void SetMaxAnisotropy(Core::uint32 anisotropy);
Core::uint32 GetMaxAnisotropy() const;
设置或获取最大各向异性过滤级别。
参数:
anisotropy- 各向异性级别(通常为 1, 2, 4, 8, 16)
返回: Core::uint32 / void
线程安全: ✅
示例:
TextureImportSettings settings;
settings.SetMaxAnisotropy(16);
Core::uint32 anisotropy = settings.GetMaxAnisotropy(); // 16
相关文档
- TextureImportSettings 总览 - 返回类总览