Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Struct CompressionPolicy

sealed struct CompressionPolicy
Specifies various levels of internal compression technologies system can enable on buffers and textures for optimal performance and power consumptions. These compression level hints are different than the compression technologies required to support application level compressed image/texture formats. Compression ratio for ‘MODERATE’ is less than ‘AGGRESSIVE’ and the actual compression ratio and technologies would be different even for the same policy on different platforms based on the underlying hardware support. Please see [ContextConfigAttributes].

Fields

Constants

SYSTEM_DEFAULT

CompressionPolicy = {"SYSTEM_DEFAULT"}
No user preferred compression policy, let the system choose the optimal one based on use case.

NONE

CompressionPolicy = {"NONE"}
In this mode, system is allowed to perform absolutely no internal compression

MODERATE

CompressionPolicy = {"MODERATE"}
In this mode, system is allowed to perform moderate level of internal compression

AGGRESSIVE

CompressionPolicy = {"AGGRESSIVE"}
In this mode, system is allowed to perform aggressive level of internal compression
Last modified on October 29, 2026