Files
XCEngine/docs/api/resources/texture-import-settings/setusehardwarecompression.md
ssdfasd 1f129ed20f docs: fix README.md project structure to match actual codebase
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)
2026-03-22 14:18:48 +08:00

28 lines
598 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# TextureImportSettings::SetUseHardwareCompression / GetUseHardwareCompression
```cpp
void SetUseHardwareCompression(bool use);
bool GetUseHardwareCompression() const;
```
设置或获取是否使用硬件压缩GPU 压缩格式)。
**参数:**
- `use` - 是否使用硬件压缩
**返回:** `bool` / `void`
**线程安全:**
**示例:**
```cpp
TextureImportSettings settings;
settings.SetUseHardwareCompression(true);
bool use = settings.GetUseHardwareCompression(); // true
```
## 相关文档
- [TextureImportSettings 总览](textureimportsettings.md) - 返回类总览