Struct android_manifest::SupportsGlTexture
source · [−]pub struct SupportsGlTexture {
pub name: Option<SupportsGlTextureName>,
}
Expand description
Declares a single GL texture compression format that the app supports.
An application “supports” a GL texture compression format if it is capable of providing texture assets that are compressed in that format, once the application is installed on a device. The application can provide the compressed assets locally, from inside the .apk, or it can download them from a server at runtime.
Each <supports-gl-texture>
element declares exactly one supported texture
compression format, specified as the value of a android:name
attribute. If your
application supports multiple texture compression formats, you can declare multiple
<supports-gl-texture>
elements.
XML Example
<supports-gl-texture
android:name="GL_OES_compressed_ETC1_RGB8_texture" />
<supports-gl-texture
android:name="GL_OES_compressed_paletted_texture" />
Declared
Applications and devices typically declare their supported GL texture compression formats using the same set of well-known strings, as listed below. The set of format strings may grow over time, as needed, and since the values are strings, applications are free to declare other formats as needed.
Assuming that the application is built with SDK Platform Tools r3 or higher, filtering
based on the <supports-gl-texture>
element is activated for all API levels.
Note
Google Play filters applications according to the texture compression formats that they support, to ensure that they can be installed only on devices that can handle their textures properly. You can use texture compression filtering as a way of targeting specific device types, based on GPU platform.
For important information about how Google Play uses <supports-gl-texture>
elements as the basis for filtering, read Google Play and texture compression filtering
, below.
XML Syntax
<supports-gl-texture
android:name="string" />
Contained in
Fields
name: Option<SupportsGlTextureName>
Specifies a single GL texture compression format supported by the application, as
a descriptor string. Common descriptor values are listed in the table below.
GL_OES_compressed_ETC1_RGB8_texture
Ericsson texture compression. Specified
in OpenGL ES 2.0 and available in all Android-powered devices that support
OpenGL ES 2.0. GL_OES_compressed_paletted_texture
Generic paletted texture
compression. GL_AMD_compressed_3DC_texture
ATI 3Dc texture
compression. GL_AMD_compressed_ATC_texture
ATI texture
compression. Available on devices running Adreno GPU, including HTC
Nexus One, Droid Incredible, EVO, and others. For widest
compatibility, devices may also declare a GL_EXT_texture_compression_latc
Luminance alpha texture compression.
GL_EXT_texture_compression_dxt1
S3 DXT1 texture compression. Supported
on devices running Nvidia Tegra2 platform, including Motorala Xoom,
Motorola Atrix, Droid Bionic, and others.
GL_EXT_texture_compression_s3tc
S3 texture compression, nonspecific to
DXT variant. Supported on devices running Nvidia Tegra2 platform,
including Motorala Xoom, Motorola Atrix, Droid Bionic, and others.
If your application requires a specific DXT variant, declare that
descriptor instead of this one. GL_IMG_texture_compression_pvrtc
PowerVR texture compression. Available in devices running PowerVR
SGX530/540 GPU, such as Motorola DROID series; Samsung Galaxy S, Nexus
S, and Galaxy Tab; and others.
Trait Implementations
sourceimpl Clone for SupportsGlTexture
impl Clone for SupportsGlTexture
sourcefn clone(&self) -> SupportsGlTexture
fn clone(&self) -> SupportsGlTexture
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SupportsGlTexture
impl Debug for SupportsGlTexture
sourceimpl Default for SupportsGlTexture
impl Default for SupportsGlTexture
sourcefn default() -> SupportsGlTexture
fn default() -> SupportsGlTexture
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SupportsGlTexture
impl<'de> Deserialize<'de> for SupportsGlTexture
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<SupportsGlTexture> for SupportsGlTexture
impl PartialEq<SupportsGlTexture> for SupportsGlTexture
sourcefn eq(&self, other: &SupportsGlTexture) -> bool
fn eq(&self, other: &SupportsGlTexture) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SupportsGlTexture) -> bool
fn ne(&self, other: &SupportsGlTexture) -> bool
This method tests for !=
.
sourceimpl Serialize for SupportsGlTexture
impl Serialize for SupportsGlTexture
sourceimpl YaDeserialize for SupportsGlTexture
impl YaDeserialize for SupportsGlTexture
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
sourceimpl YaSerialize for SupportsGlTexture
impl YaSerialize for SupportsGlTexture
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes(
&self,
source_attributes: Vec<OwnedAttribute>,
source_namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl StructuralPartialEq for SupportsGlTexture
Auto Trait Implementations
impl RefUnwindSafe for SupportsGlTexture
impl Send for SupportsGlTexture
impl Sync for SupportsGlTexture
impl Unpin for SupportsGlTexture
impl UnwindSafe for SupportsGlTexture
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more