maplibre-rs/docs/api/maplibre/render/settings/enum.TextureFormat.html

271 lines
105 KiB
HTML
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.

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Underlying texture data format."><meta name="keywords" content="rust, rustlang, rust-lang, TextureFormat"><title>TextureFormat in maplibre::render::settings - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc enum"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">TextureFormat</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#variants">Variants</a></h3><ul><li><a href="#variant.Astc">Astc</a></li><li><a href="#variant.Bc1RgbaUnorm">Bc1RgbaUnorm</a></li><li><a href="#variant.Bc1RgbaUnormSrgb">Bc1RgbaUnormSrgb</a></li><li><a href="#variant.Bc2RgbaUnorm">Bc2RgbaUnorm</a></li><li><a href="#variant.Bc2RgbaUnormSrgb">Bc2RgbaUnormSrgb</a></li><li><a href="#variant.Bc3RgbaUnorm">Bc3RgbaUnorm</a></li><li><a href="#variant.Bc3RgbaUnormSrgb">Bc3RgbaUnormSrgb</a></li><li><a href="#variant.Bc4RSnorm">Bc4RSnorm</a></li><li><a href="#variant.Bc4RUnorm">Bc4RUnorm</a></li><li><a href="#variant.Bc5RgSnorm">Bc5RgSnorm</a></li><li><a href="#variant.Bc5RgUnorm">Bc5RgUnorm</a></li><li><a href="#variant.Bc6hRgbSfloat">Bc6hRgbSfloat</a></li><li><a href="#variant.Bc6hRgbUfloat">Bc6hRgbUfloat</a></li><li><a href="#variant.Bc7RgbaUnorm">Bc7RgbaUnorm</a></li><li><a href="#variant.Bc7RgbaUnormSrgb">Bc7RgbaUnormSrgb</a></li><li><a href="#variant.Bgra8Unorm">Bgra8Unorm</a></li><li><a href="#variant.Bgra8UnormSrgb">Bgra8UnormSrgb</a></li><li><a href="#variant.Depth16Unorm">Depth16Unorm</a></li><li><a href="#variant.Depth24Plus">Depth24Plus</a></li><li><a href="#variant.Depth24PlusStencil8">Depth24PlusStencil8</a></li><li><a href="#variant.Depth32Float">Depth32Float</a></li><li><a href="#variant.Depth32FloatStencil8">Depth32FloatStencil8</a></li><li><a href="#variant.EacR11Snorm">EacR11Snorm</a></li><li><a href="#variant.EacR11Unorm">EacR11Unorm</a></li><li><a href="#variant.EacRg11Snorm">EacRg11Snorm</a></li><li><a href="#variant.EacRg11Unorm">EacRg11Unorm</a></li><li><a href="#variant.Etc2Rgb8A1Unorm">Etc2Rgb8A1Unorm</a></li><li><a href="#variant.Etc2Rgb8A1UnormSrgb">Etc2Rgb8A1UnormSrgb</a></li><li><a href="#variant.Etc2Rgb8Unorm">Etc2Rgb8Unorm</a></li><li><a href="#variant.Etc2Rgb8UnormSrgb">Etc2Rgb8UnormSrgb</a></li><li><a href="#variant.Etc2Rgba8Unorm">Etc2Rgba8Unorm</a></li><li><a href="#variant.Etc2Rgba8UnormSrgb">Etc2Rgba8UnormSrgb</a></li><li><a href="#variant.R16Float">R16Float</a></li><li><a href="#variant.R16Sint">R16Sint</a></li><li><a href="#variant.R16Snorm">R16Snorm</a></li><li><a href="#variant.R16Uint">R16Uint</a></li><li><a href="#variant.R16Unorm">R16Unorm</a></li><li><a href="#variant.R32Float">R32Float</a></li><li><a href="#variant.R32Sint">R32Sint</a></li><li><a href="#variant.R32Uint">R32Uint</a></li><li><a href="#variant.R8Sint">R8Sint</a></li><li><a href="#variant.R8Snorm">R8Snorm</a></li><li><a href="#variant.R8Uint">R8Uint</a></li><li><a href="#variant.R8Unorm">R8Unorm</a></li><li><a href="#variant.Rg11b10Float">Rg11b10Float</a></li><li><a href="#variant.Rg16Float">Rg16Float</a></li><li><a href="#variant.Rg16Sint">Rg16Sint</a></li><li><a href="#variant.Rg16Snorm">Rg16Snorm</a></li><li><a href="#variant.Rg16Uint">Rg16Uint</a></li><li><a href="#variant.Rg16Unorm">Rg16Unorm</a></li><li><a href="#variant.Rg32Float">Rg32Float</a></li><li><a href="#variant.Rg32Sint">Rg32Sint</a></li><li><a href="#variant.Rg32Uint">Rg32Uint</a></li><li><a href="#variant.Rg8Sint">Rg8Sint</a></li><li><a href="#variant.Rg8Snorm">Rg8Snorm</a></li><li><a href="#variant.Rg8Uint">Rg8Uint</a></li><li><a href="#variant.Rg8Unorm">Rg8Unorm</a></li><li><a href="#variant.Rgb10a2Unorm">Rgb10a2Unorm</a></li><li><a href="#variant.Rgb9e5Ufloat">Rgb9e5Ufloat</a></li><li><a href="#variant.Rgba16Float">Rgba16Float</a></li><li><a href="#variant.Rgba16Sint">Rgba16Sint</a></li><li><a href="#variant.Rgba16Snorm">Rgba16Snorm</a></li><li><a href="#variant.Rgba16Uint">Rgba16Uint</a></li><li><a href="#variant.Rgba16Unorm">Rgba16Unorm</a></li><li><a href="#variant.Rgba32Float">Rgba32Float</a></li><li><a href="#variant.Rgba32Sint">Rgba32Sint</a></li><li><a href="#variant.Rgba32Uint">Rgba32Uint</a></li><li><a href="#variant.Rgba8Sint">Rgba8Sint</a></li><li><a href="#variant.Rgba8Snorm">Rgba8Snorm</a></li><li><a href="#variant.Rgba8Uint">Rgba8Uint</a></li><li><a href="#variant.Rgba8Unorm">Rgba8Unorm</a></li><li><a href="#variant.Rgba8UnormSrgb">Rgba8UnormSrgb</a></li><li><a href="#variant.Stencil8">Stencil8</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.add_srgb_suffix">add_srgb_suffix</a></li><li><a href="#method.aspect_specific_format">aspect_specific_format</a></li><li><a href="#method.block_dimensions">block_dimensions</a></li><li><a href="#method.block_size">block_size</a></li><li><a href="#method.guaranteed_format_features">guaranteed_format_features</a></li><li><a href="#method.has_color_aspect">has_color_aspect</a></li><li><a href="#method.has_depth_aspect">has_depth_aspect</a></li><li><a href="#method.has_stencil_aspect">has_stencil_aspect</a></li><li><a href="#method.is_combined_depth_stencil_format">is_combined_depth_stencil_format</a></li><li><a href="#method.is_compressed">is_compressed</a></li><li><a href="#method.is_depth_stencil_component">is_depth_stencil_component</a></li><li><a href="#method.is_depth_stencil_format">is_depth_stencil_format</a></li><li><a href="#method.is_srgb">is_srgb</a></li><li><a href="#method.remove_srgb_suffix">remove_srgb_suffix</a></li><li><a href="#method.required_features">required_features</a></li><li><a href="#method.sample_type">sample_type</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Clone-for-TextureFormat">Clone</a></li><li><a href="#impl-Copy-for-TextureFormat">Copy</a></li><li><a href="#impl-Debug-for-TextureFormat">Debug</a></li><li><a href="#impl-Eq-for-TextureFormat">Eq</a></li><li><a href="#impl-Hash-for-TextureFormat">Hash</a></li><li><a href="#impl-PartialEq%3CTextureFormat%3E-for-TextureFormat">PartialEq&lt;TextureFormat&gt;</a></li><li><a href="#impl-StructuralEq-for-TextureFormat">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq-for-TextureFormat">StructuralPartialEq</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe-for-TextureFormat">RefUnwindSafe</a></li><li><a href="#impl-Send-for-TextureFormat">Send</a></li><li><a href="#impl-Sync-for-TextureFormat">Sync</a></li><li><a href="#impl-Unpin-for-TextureFormat">Unpin</a></li><li><a href="#impl-UnwindSafe-for-TextureFormat">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any-for-TextureFormat">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-TextureFormat">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-TextureFormat">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-CallHasher-for-TextureFormat">CallHasher</a></li><li><a href="#impl-Downcast%3CT%3E-for-TextureFormat">Downcast&lt;T&gt;</a></li><li><a href="#impl-Downcast-for-TextureFormat">Downcast</a></li><li><a href="#impl-DowncastSync-for-TextureFormat">DowncastSync</a></li><li><a href="#impl-DynEq-for-TextureFormat">DynEq</a></li><li><a href="#impl-DynHash-for-TextureFormat">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E-for-TextureFormat">Equivalent&lt;K&gt;</a></li><li><a href="#impl-From%3CT%3E-for-TextureFormat">From&lt;T&gt;</a></li><li><a href="#impl-Instrument-for-TextureFormat">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-TextureFormat">Into&lt;U&gt;</a></li><li><a href="#impl-Resource-for-TextureFormat">Resource</a></li><li><a href="#impl-Same%3CT%3E-for-TextureFormat">Same&lt;T&gt;</a></li><li><a href="#impl-ToOwned-for-TextureFormat">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-TextureFormat">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-TextureFormat">TryInto&lt;U&gt;</a></li><li><a href="#impl-Upcast%3CT%3E-for-TextureFormat">Upcast&lt;T&gt;</a></li><li><a href="#impl-WithSubscriber-for-TextureFormat">WithSubscriber</a></li><li><a href="#impl-Within%3CG2%3E-for-TextureFormat">Within&lt;G2&gt;</a></li></ul></div></section><h2 class="location"><a href="index.html">In maplibre::render::settings</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../maplibre/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Enum <a href="../../index.html">maplibre</a>::<wbr><a href="../index.html">render</a>::<wbr><a href="index.html">settings</a>::<wbr><a class="enum" href="#">TextureFormat</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust enum"><code>#[repr(C)]
pub enum TextureFormat {
<details class="rustdoc-toggle type-contents-toggle"><summary class="hideme"><span>Show 73 variants</span></summary> R8Unorm,
R8Snorm,
R8Uint,
R8Sint,
R16Uint,
R16Sint,
R16Unorm,
R16Snorm,
R16Float,
Rg8Unorm,
Rg8Snorm,
Rg8Uint,
Rg8Sint,
R32Uint,
R32Sint,
R32Float,
Rg16Uint,
Rg16Sint,
Rg16Unorm,
Rg16Snorm,
Rg16Float,
Rgba8Unorm,
Rgba8UnormSrgb,
Rgba8Snorm,
Rgba8Uint,
Rgba8Sint,
Bgra8Unorm,
Bgra8UnormSrgb,
Rgb9e5Ufloat,
Rgb10a2Unorm,
Rg11b10Float,
Rg32Uint,
Rg32Sint,
Rg32Float,
Rgba16Uint,
Rgba16Sint,
Rgba16Unorm,
Rgba16Snorm,
Rgba16Float,
Rgba32Uint,
Rgba32Sint,
Rgba32Float,
Stencil8,
Depth16Unorm,
Depth24Plus,
Depth24PlusStencil8,
Depth32Float,
Depth32FloatStencil8,
Bc1RgbaUnorm,
Bc1RgbaUnormSrgb,
Bc2RgbaUnorm,
Bc2RgbaUnormSrgb,
Bc3RgbaUnorm,
Bc3RgbaUnormSrgb,
Bc4RUnorm,
Bc4RSnorm,
Bc5RgUnorm,
Bc5RgSnorm,
Bc6hRgbUfloat,
Bc6hRgbSfloat,
Bc7RgbaUnorm,
Bc7RgbaUnormSrgb,
Etc2Rgb8Unorm,
Etc2Rgb8UnormSrgb,
Etc2Rgb8A1Unorm,
Etc2Rgb8A1UnormSrgb,
Etc2Rgba8Unorm,
Etc2Rgba8UnormSrgb,
EacR11Unorm,
EacR11Snorm,
EacRg11Unorm,
EacRg11Snorm,
Astc {
block: AstcBlock,
channel: AstcChannel,
},
</details>}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Underlying texture data format.</p>
<p>If there is a conversion in the format (such as srgb -&gt; linear), the conversion listed here is for
loading from texture in a shader. When writing to the texture, the opposite conversion takes place.</p>
<p>Corresponds to <a href="https://gpuweb.github.io/gpuweb/#enumdef-gputextureformat">WebGPU <code>GPUTextureFormat</code></a>.</p>
</div></details><h2 id="variants" class="variants small-section-header">Variants<a href="#variants" class="anchor"></a></h2><h3 id="variant.R8Unorm" class="variant small-section-header"><a href="#variant.R8Unorm" class="anchor field"></a><code>R8Unorm</code></h3><div class="docblock"><p>Red channel only. 8 bit integer per channel. [0, 255] converted to/from float [0, 1] in shader.</p>
</div><h3 id="variant.R8Snorm" class="variant small-section-header"><a href="#variant.R8Snorm" class="anchor field"></a><code>R8Snorm</code></h3><div class="docblock"><p>Red channel only. 8 bit integer per channel. [-127, 127] converted to/from float [-1, 1] in shader.</p>
</div><h3 id="variant.R8Uint" class="variant small-section-header"><a href="#variant.R8Uint" class="anchor field"></a><code>R8Uint</code></h3><div class="docblock"><p>Red channel only. 8 bit integer per channel. Unsigned in shader.</p>
</div><h3 id="variant.R8Sint" class="variant small-section-header"><a href="#variant.R8Sint" class="anchor field"></a><code>R8Sint</code></h3><div class="docblock"><p>Red channel only. 8 bit integer per channel. Signed in shader.</p>
</div><h3 id="variant.R16Uint" class="variant small-section-header"><a href="#variant.R16Uint" class="anchor field"></a><code>R16Uint</code></h3><div class="docblock"><p>Red channel only. 16 bit integer per channel. Unsigned in shader.</p>
</div><h3 id="variant.R16Sint" class="variant small-section-header"><a href="#variant.R16Sint" class="anchor field"></a><code>R16Sint</code></h3><div class="docblock"><p>Red channel only. 16 bit integer per channel. Signed in shader.</p>
</div><h3 id="variant.R16Unorm" class="variant small-section-header"><a href="#variant.R16Unorm" class="anchor field"></a><code>R16Unorm</code></h3><div class="docblock"><p>Red channel only. 16 bit integer per channel. [0, 65535] converted to/from float [0, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_FORMAT_16BIT_NORM" title="Features::TEXTURE_FORMAT_16BIT_NORM"><code>Features::TEXTURE_FORMAT_16BIT_NORM</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.R16Snorm" class="variant small-section-header"><a href="#variant.R16Snorm" class="anchor field"></a><code>R16Snorm</code></h3><div class="docblock"><p>Red channel only. 16 bit integer per channel. [0, 65535] converted to/from float [-1, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_FORMAT_16BIT_NORM" title="Features::TEXTURE_FORMAT_16BIT_NORM"><code>Features::TEXTURE_FORMAT_16BIT_NORM</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.R16Float" class="variant small-section-header"><a href="#variant.R16Float" class="anchor field"></a><code>R16Float</code></h3><div class="docblock"><p>Red channel only. 16 bit float per channel. Float in shader.</p>
</div><h3 id="variant.Rg8Unorm" class="variant small-section-header"><a href="#variant.Rg8Unorm" class="anchor field"></a><code>Rg8Unorm</code></h3><div class="docblock"><p>Red and green channels. 8 bit integer per channel. [0, 255] converted to/from float [0, 1] in shader.</p>
</div><h3 id="variant.Rg8Snorm" class="variant small-section-header"><a href="#variant.Rg8Snorm" class="anchor field"></a><code>Rg8Snorm</code></h3><div class="docblock"><p>Red and green channels. 8 bit integer per channel. [-127, 127] converted to/from float [-1, 1] in shader.</p>
</div><h3 id="variant.Rg8Uint" class="variant small-section-header"><a href="#variant.Rg8Uint" class="anchor field"></a><code>Rg8Uint</code></h3><div class="docblock"><p>Red and green channels. 8 bit integer per channel. Unsigned in shader.</p>
</div><h3 id="variant.Rg8Sint" class="variant small-section-header"><a href="#variant.Rg8Sint" class="anchor field"></a><code>Rg8Sint</code></h3><div class="docblock"><p>Red and green channels. 8 bit integer per channel. Signed in shader.</p>
</div><h3 id="variant.R32Uint" class="variant small-section-header"><a href="#variant.R32Uint" class="anchor field"></a><code>R32Uint</code></h3><div class="docblock"><p>Red channel only. 32 bit integer per channel. Unsigned in shader.</p>
</div><h3 id="variant.R32Sint" class="variant small-section-header"><a href="#variant.R32Sint" class="anchor field"></a><code>R32Sint</code></h3><div class="docblock"><p>Red channel only. 32 bit integer per channel. Signed in shader.</p>
</div><h3 id="variant.R32Float" class="variant small-section-header"><a href="#variant.R32Float" class="anchor field"></a><code>R32Float</code></h3><div class="docblock"><p>Red channel only. 32 bit float per channel. Float in shader.</p>
</div><h3 id="variant.Rg16Uint" class="variant small-section-header"><a href="#variant.Rg16Uint" class="anchor field"></a><code>Rg16Uint</code></h3><div class="docblock"><p>Red and green channels. 16 bit integer per channel. Unsigned in shader.</p>
</div><h3 id="variant.Rg16Sint" class="variant small-section-header"><a href="#variant.Rg16Sint" class="anchor field"></a><code>Rg16Sint</code></h3><div class="docblock"><p>Red and green channels. 16 bit integer per channel. Signed in shader.</p>
</div><h3 id="variant.Rg16Unorm" class="variant small-section-header"><a href="#variant.Rg16Unorm" class="anchor field"></a><code>Rg16Unorm</code></h3><div class="docblock"><p>Red and green channels. 16 bit integer per channel. [0, 65535] converted to/from float [0, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_FORMAT_16BIT_NORM" title="Features::TEXTURE_FORMAT_16BIT_NORM"><code>Features::TEXTURE_FORMAT_16BIT_NORM</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Rg16Snorm" class="variant small-section-header"><a href="#variant.Rg16Snorm" class="anchor field"></a><code>Rg16Snorm</code></h3><div class="docblock"><p>Red and green channels. 16 bit integer per channel. [0, 65535] converted to/from float [-1, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_FORMAT_16BIT_NORM" title="Features::TEXTURE_FORMAT_16BIT_NORM"><code>Features::TEXTURE_FORMAT_16BIT_NORM</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Rg16Float" class="variant small-section-header"><a href="#variant.Rg16Float" class="anchor field"></a><code>Rg16Float</code></h3><div class="docblock"><p>Red and green channels. 16 bit float per channel. Float in shader.</p>
</div><h3 id="variant.Rgba8Unorm" class="variant small-section-header"><a href="#variant.Rgba8Unorm" class="anchor field"></a><code>Rgba8Unorm</code></h3><div class="docblock"><p>Red, green, blue, and alpha channels. 8 bit integer per channel. [0, 255] converted to/from float [0, 1] in shader.</p>
</div><h3 id="variant.Rgba8UnormSrgb" class="variant small-section-header"><a href="#variant.Rgba8UnormSrgb" class="anchor field"></a><code>Rgba8UnormSrgb</code></h3><div class="docblock"><p>Red, green, blue, and alpha channels. 8 bit integer per channel. Srgb-color [0, 255] converted to/from linear-color float [0, 1] in shader.</p>
</div><h3 id="variant.Rgba8Snorm" class="variant small-section-header"><a href="#variant.Rgba8Snorm" class="anchor field"></a><code>Rgba8Snorm</code></h3><div class="docblock"><p>Red, green, blue, and alpha channels. 8 bit integer per channel. [-127, 127] converted to/from float [-1, 1] in shader.</p>
</div><h3 id="variant.Rgba8Uint" class="variant small-section-header"><a href="#variant.Rgba8Uint" class="anchor field"></a><code>Rgba8Uint</code></h3><div class="docblock"><p>Red, green, blue, and alpha channels. 8 bit integer per channel. Unsigned in shader.</p>
</div><h3 id="variant.Rgba8Sint" class="variant small-section-header"><a href="#variant.Rgba8Sint" class="anchor field"></a><code>Rgba8Sint</code></h3><div class="docblock"><p>Red, green, blue, and alpha channels. 8 bit integer per channel. Signed in shader.</p>
</div><h3 id="variant.Bgra8Unorm" class="variant small-section-header"><a href="#variant.Bgra8Unorm" class="anchor field"></a><code>Bgra8Unorm</code></h3><div class="docblock"><p>Blue, green, red, and alpha channels. 8 bit integer per channel. [0, 255] converted to/from float [0, 1] in shader.</p>
</div><h3 id="variant.Bgra8UnormSrgb" class="variant small-section-header"><a href="#variant.Bgra8UnormSrgb" class="anchor field"></a><code>Bgra8UnormSrgb</code></h3><div class="docblock"><p>Blue, green, red, and alpha channels. 8 bit integer per channel. Srgb-color [0, 255] converted to/from linear-color float [0, 1] in shader.</p>
</div><h3 id="variant.Rgb9e5Ufloat" class="variant small-section-header"><a href="#variant.Rgb9e5Ufloat" class="anchor field"></a><code>Rgb9e5Ufloat</code></h3><div class="docblock"><p>Packed unsigned float with 9 bits mantisa for each RGB component, then a common 5 bits exponent</p>
</div><h3 id="variant.Rgb10a2Unorm" class="variant small-section-header"><a href="#variant.Rgb10a2Unorm" class="anchor field"></a><code>Rgb10a2Unorm</code></h3><div class="docblock"><p>Red, green, blue, and alpha channels. 10 bit integer for RGB channels, 2 bit integer for alpha channel. [0, 1023] ([0, 3] for alpha) converted to/from float [0, 1] in shader.</p>
</div><h3 id="variant.Rg11b10Float" class="variant small-section-header"><a href="#variant.Rg11b10Float" class="anchor field"></a><code>Rg11b10Float</code></h3><div class="docblock"><p>Red, green, and blue channels. 11 bit float with no sign bit for RG channels. 10 bit float with no sign bit for blue channel. Float in shader.</p>
</div><h3 id="variant.Rg32Uint" class="variant small-section-header"><a href="#variant.Rg32Uint" class="anchor field"></a><code>Rg32Uint</code></h3><div class="docblock"><p>Red and green channels. 32 bit integer per channel. Unsigned in shader.</p>
</div><h3 id="variant.Rg32Sint" class="variant small-section-header"><a href="#variant.Rg32Sint" class="anchor field"></a><code>Rg32Sint</code></h3><div class="docblock"><p>Red and green channels. 32 bit integer per channel. Signed in shader.</p>
</div><h3 id="variant.Rg32Float" class="variant small-section-header"><a href="#variant.Rg32Float" class="anchor field"></a><code>Rg32Float</code></h3><div class="docblock"><p>Red and green channels. 32 bit float per channel. Float in shader.</p>
</div><h3 id="variant.Rgba16Uint" class="variant small-section-header"><a href="#variant.Rgba16Uint" class="anchor field"></a><code>Rgba16Uint</code></h3><div class="docblock"><p>Red, green, blue, and alpha channels. 16 bit integer per channel. Unsigned in shader.</p>
</div><h3 id="variant.Rgba16Sint" class="variant small-section-header"><a href="#variant.Rgba16Sint" class="anchor field"></a><code>Rgba16Sint</code></h3><div class="docblock"><p>Red, green, blue, and alpha channels. 16 bit integer per channel. Signed in shader.</p>
</div><h3 id="variant.Rgba16Unorm" class="variant small-section-header"><a href="#variant.Rgba16Unorm" class="anchor field"></a><code>Rgba16Unorm</code></h3><div class="docblock"><p>Red, green, blue, and alpha channels. 16 bit integer per channel. [0, 65535] converted to/from float [0, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_FORMAT_16BIT_NORM" title="Features::TEXTURE_FORMAT_16BIT_NORM"><code>Features::TEXTURE_FORMAT_16BIT_NORM</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Rgba16Snorm" class="variant small-section-header"><a href="#variant.Rgba16Snorm" class="anchor field"></a><code>Rgba16Snorm</code></h3><div class="docblock"><p>Red, green, blue, and alpha. 16 bit integer per channel. [0, 65535] converted to/from float [-1, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_FORMAT_16BIT_NORM" title="Features::TEXTURE_FORMAT_16BIT_NORM"><code>Features::TEXTURE_FORMAT_16BIT_NORM</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Rgba16Float" class="variant small-section-header"><a href="#variant.Rgba16Float" class="anchor field"></a><code>Rgba16Float</code></h3><div class="docblock"><p>Red, green, blue, and alpha channels. 16 bit float per channel. Float in shader.</p>
</div><h3 id="variant.Rgba32Uint" class="variant small-section-header"><a href="#variant.Rgba32Uint" class="anchor field"></a><code>Rgba32Uint</code></h3><div class="docblock"><p>Red, green, blue, and alpha channels. 32 bit integer per channel. Unsigned in shader.</p>
</div><h3 id="variant.Rgba32Sint" class="variant small-section-header"><a href="#variant.Rgba32Sint" class="anchor field"></a><code>Rgba32Sint</code></h3><div class="docblock"><p>Red, green, blue, and alpha channels. 32 bit integer per channel. Signed in shader.</p>
</div><h3 id="variant.Rgba32Float" class="variant small-section-header"><a href="#variant.Rgba32Float" class="anchor field"></a><code>Rgba32Float</code></h3><div class="docblock"><p>Red, green, blue, and alpha channels. 32 bit float per channel. Float in shader.</p>
</div><h3 id="variant.Stencil8" class="variant small-section-header"><a href="#variant.Stencil8" class="anchor field"></a><code>Stencil8</code></h3><div class="docblock"><p>Stencil format with 8 bit integer stencil.</p>
</div><h3 id="variant.Depth16Unorm" class="variant small-section-header"><a href="#variant.Depth16Unorm" class="anchor field"></a><code>Depth16Unorm</code></h3><div class="docblock"><p>Special depth format with 16 bit integer depth.</p>
</div><h3 id="variant.Depth24Plus" class="variant small-section-header"><a href="#variant.Depth24Plus" class="anchor field"></a><code>Depth24Plus</code></h3><div class="docblock"><p>Special depth format with at least 24 bit integer depth.</p>
</div><h3 id="variant.Depth24PlusStencil8" class="variant small-section-header"><a href="#variant.Depth24PlusStencil8" class="anchor field"></a><code>Depth24PlusStencil8</code></h3><div class="docblock"><p>Special depth/stencil format with at least 24 bit integer depth and 8 bits integer stencil.</p>
</div><h3 id="variant.Depth32Float" class="variant small-section-header"><a href="#variant.Depth32Float" class="anchor field"></a><code>Depth32Float</code></h3><div class="docblock"><p>Special depth format with 32 bit floating point depth.</p>
</div><h3 id="variant.Depth32FloatStencil8" class="variant small-section-header"><a href="#variant.Depth32FloatStencil8" class="anchor field"></a><code>Depth32FloatStencil8</code></h3><div class="docblock"><p>Special depth/stencil format with 32 bit floating point depth and 8 bits integer stencil.</p>
</div><h3 id="variant.Bc1RgbaUnorm" class="variant small-section-header"><a href="#variant.Bc1RgbaUnorm" class="anchor field"></a><code>Bc1RgbaUnorm</code></h3><div class="docblock"><p>4x4 block compressed texture. 8 bytes per block (4 bit/px). 4 color + alpha pallet. 5 bit R + 6 bit G + 5 bit B + 1 bit alpha.
[0, 63] ([0, 1] for alpha) converted to/from float [0, 1] in shader.</p>
<p>Also known as DXT1.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_BC" title="Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Bc1RgbaUnormSrgb" class="variant small-section-header"><a href="#variant.Bc1RgbaUnormSrgb" class="anchor field"></a><code>Bc1RgbaUnormSrgb</code></h3><div class="docblock"><p>4x4 block compressed texture. 8 bytes per block (4 bit/px). 4 color + alpha pallet. 5 bit R + 6 bit G + 5 bit B + 1 bit alpha.
Srgb-color [0, 63] ([0, 1] for alpha) converted to/from linear-color float [0, 1] in shader.</p>
<p>Also known as DXT1.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_BC" title="Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Bc2RgbaUnorm" class="variant small-section-header"><a href="#variant.Bc2RgbaUnorm" class="anchor field"></a><code>Bc2RgbaUnorm</code></h3><div class="docblock"><p>4x4 block compressed texture. 16 bytes per block (8 bit/px). 4 color pallet. 5 bit R + 6 bit G + 5 bit B + 4 bit alpha.
[0, 63] ([0, 15] for alpha) converted to/from float [0, 1] in shader.</p>
<p>Also known as DXT3.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_BC" title="Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Bc2RgbaUnormSrgb" class="variant small-section-header"><a href="#variant.Bc2RgbaUnormSrgb" class="anchor field"></a><code>Bc2RgbaUnormSrgb</code></h3><div class="docblock"><p>4x4 block compressed texture. 16 bytes per block (8 bit/px). 4 color pallet. 5 bit R + 6 bit G + 5 bit B + 4 bit alpha.
Srgb-color [0, 63] ([0, 255] for alpha) converted to/from linear-color float [0, 1] in shader.</p>
<p>Also known as DXT3.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_BC" title="Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Bc3RgbaUnorm" class="variant small-section-header"><a href="#variant.Bc3RgbaUnorm" class="anchor field"></a><code>Bc3RgbaUnorm</code></h3><div class="docblock"><p>4x4 block compressed texture. 16 bytes per block (8 bit/px). 4 color pallet + 8 alpha pallet. 5 bit R + 6 bit G + 5 bit B + 8 bit alpha.
[0, 63] ([0, 255] for alpha) converted to/from float [0, 1] in shader.</p>
<p>Also known as DXT5.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_BC" title="Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Bc3RgbaUnormSrgb" class="variant small-section-header"><a href="#variant.Bc3RgbaUnormSrgb" class="anchor field"></a><code>Bc3RgbaUnormSrgb</code></h3><div class="docblock"><p>4x4 block compressed texture. 16 bytes per block (8 bit/px). 4 color pallet + 8 alpha pallet. 5 bit R + 6 bit G + 5 bit B + 8 bit alpha.
Srgb-color [0, 63] ([0, 255] for alpha) converted to/from linear-color float [0, 1] in shader.</p>
<p>Also known as DXT5.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_BC" title="Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Bc4RUnorm" class="variant small-section-header"><a href="#variant.Bc4RUnorm" class="anchor field"></a><code>Bc4RUnorm</code></h3><div class="docblock"><p>4x4 block compressed texture. 8 bytes per block (4 bit/px). 8 color pallet. 8 bit R.
[0, 255] converted to/from float [0, 1] in shader.</p>
<p>Also known as RGTC1.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_BC" title="Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Bc4RSnorm" class="variant small-section-header"><a href="#variant.Bc4RSnorm" class="anchor field"></a><code>Bc4RSnorm</code></h3><div class="docblock"><p>4x4 block compressed texture. 8 bytes per block (4 bit/px). 8 color pallet. 8 bit R.
[-127, 127] converted to/from float [-1, 1] in shader.</p>
<p>Also known as RGTC1.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_BC" title="Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Bc5RgUnorm" class="variant small-section-header"><a href="#variant.Bc5RgUnorm" class="anchor field"></a><code>Bc5RgUnorm</code></h3><div class="docblock"><p>4x4 block compressed texture. 16 bytes per block (8 bit/px). 8 color red pallet + 8 color green pallet. 8 bit RG.
[0, 255] converted to/from float [0, 1] in shader.</p>
<p>Also known as RGTC2.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_BC" title="Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Bc5RgSnorm" class="variant small-section-header"><a href="#variant.Bc5RgSnorm" class="anchor field"></a><code>Bc5RgSnorm</code></h3><div class="docblock"><p>4x4 block compressed texture. 16 bytes per block (8 bit/px). 8 color red pallet + 8 color green pallet. 8 bit RG.
[-127, 127] converted to/from float [-1, 1] in shader.</p>
<p>Also known as RGTC2.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_BC" title="Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Bc6hRgbUfloat" class="variant small-section-header"><a href="#variant.Bc6hRgbUfloat" class="anchor field"></a><code>Bc6hRgbUfloat</code></h3><div class="docblock"><p>4x4 block compressed texture. 16 bytes per block (8 bit/px). Variable sized pallet. 16 bit unsigned float RGB. Float in shader.</p>
<p>Also known as BPTC (float).</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_BC" title="Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Bc6hRgbSfloat" class="variant small-section-header"><a href="#variant.Bc6hRgbSfloat" class="anchor field"></a><code>Bc6hRgbSfloat</code></h3><div class="docblock"><p>4x4 block compressed texture. 16 bytes per block (8 bit/px). Variable sized pallet. 16 bit signed float RGB. Float in shader.</p>
<p>Also known as BPTC (float).</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_BC" title="Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Bc7RgbaUnorm" class="variant small-section-header"><a href="#variant.Bc7RgbaUnorm" class="anchor field"></a><code>Bc7RgbaUnorm</code></h3><div class="docblock"><p>4x4 block compressed texture. 16 bytes per block (8 bit/px). Variable sized pallet. 8 bit integer RGBA.
[0, 255] converted to/from float [0, 1] in shader.</p>
<p>Also known as BPTC (unorm).</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_BC" title="Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Bc7RgbaUnormSrgb" class="variant small-section-header"><a href="#variant.Bc7RgbaUnormSrgb" class="anchor field"></a><code>Bc7RgbaUnormSrgb</code></h3><div class="docblock"><p>4x4 block compressed texture. 16 bytes per block (8 bit/px). Variable sized pallet. 8 bit integer RGBA.
Srgb-color [0, 255] converted to/from linear-color float [0, 1] in shader.</p>
<p>Also known as BPTC (unorm).</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_BC" title="Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Etc2Rgb8Unorm" class="variant small-section-header"><a href="#variant.Etc2Rgb8Unorm" class="anchor field"></a><code>Etc2Rgb8Unorm</code></h3><div class="docblock"><p>4x4 block compressed texture. 8 bytes per block (4 bit/px). Complex pallet. 8 bit integer RGB.
[0, 255] converted to/from float [0, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_ETC2" title="Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Etc2Rgb8UnormSrgb" class="variant small-section-header"><a href="#variant.Etc2Rgb8UnormSrgb" class="anchor field"></a><code>Etc2Rgb8UnormSrgb</code></h3><div class="docblock"><p>4x4 block compressed texture. 8 bytes per block (4 bit/px). Complex pallet. 8 bit integer RGB.
Srgb-color [0, 255] converted to/from linear-color float [0, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_ETC2" title="Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Etc2Rgb8A1Unorm" class="variant small-section-header"><a href="#variant.Etc2Rgb8A1Unorm" class="anchor field"></a><code>Etc2Rgb8A1Unorm</code></h3><div class="docblock"><p>4x4 block compressed texture. 8 bytes per block (4 bit/px). Complex pallet. 8 bit integer RGB + 1 bit alpha.
[0, 255] ([0, 1] for alpha) converted to/from float [0, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_ETC2" title="Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Etc2Rgb8A1UnormSrgb" class="variant small-section-header"><a href="#variant.Etc2Rgb8A1UnormSrgb" class="anchor field"></a><code>Etc2Rgb8A1UnormSrgb</code></h3><div class="docblock"><p>4x4 block compressed texture. 8 bytes per block (4 bit/px). Complex pallet. 8 bit integer RGB + 1 bit alpha.
Srgb-color [0, 255] ([0, 1] for alpha) converted to/from linear-color float [0, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_ETC2" title="Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Etc2Rgba8Unorm" class="variant small-section-header"><a href="#variant.Etc2Rgba8Unorm" class="anchor field"></a><code>Etc2Rgba8Unorm</code></h3><div class="docblock"><p>4x4 block compressed texture. 16 bytes per block (8 bit/px). Complex pallet. 8 bit integer RGB + 8 bit alpha.
[0, 255] converted to/from float [0, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_ETC2" title="Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Etc2Rgba8UnormSrgb" class="variant small-section-header"><a href="#variant.Etc2Rgba8UnormSrgb" class="anchor field"></a><code>Etc2Rgba8UnormSrgb</code></h3><div class="docblock"><p>4x4 block compressed texture. 16 bytes per block (8 bit/px). Complex pallet. 8 bit integer RGB + 8 bit alpha.
Srgb-color [0, 255] converted to/from linear-color float [0, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_ETC2" title="Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.EacR11Unorm" class="variant small-section-header"><a href="#variant.EacR11Unorm" class="anchor field"></a><code>EacR11Unorm</code></h3><div class="docblock"><p>4x4 block compressed texture. 8 bytes per block (4 bit/px). Complex pallet. 11 bit integer R.
[0, 255] converted to/from float [0, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_ETC2" title="Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.EacR11Snorm" class="variant small-section-header"><a href="#variant.EacR11Snorm" class="anchor field"></a><code>EacR11Snorm</code></h3><div class="docblock"><p>4x4 block compressed texture. 8 bytes per block (4 bit/px). Complex pallet. 11 bit integer R.
[-127, 127] converted to/from float [-1, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_ETC2" title="Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.EacRg11Unorm" class="variant small-section-header"><a href="#variant.EacRg11Unorm" class="anchor field"></a><code>EacRg11Unorm</code></h3><div class="docblock"><p>4x4 block compressed texture. 16 bytes per block (8 bit/px). Complex pallet. 11 bit integer R + 11 bit integer G.
[0, 255] converted to/from float [0, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_ETC2" title="Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.EacRg11Snorm" class="variant small-section-header"><a href="#variant.EacRg11Snorm" class="anchor field"></a><code>EacRg11Snorm</code></h3><div class="docblock"><p>4x4 block compressed texture. 16 bytes per block (8 bit/px). Complex pallet. 11 bit integer R + 11 bit integer G.
[-127, 127] converted to/from float [-1, 1] in shader.</p>
<p><a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_ETC2" title="Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><h3 id="variant.Astc" class="variant small-section-header"><a href="#variant.Astc" class="anchor field"></a><code>Astc</code></h3><div class="sub-variant" id="variant.Astc.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Astc.field.block" class="variant small-section-header"><a href="#variant.Astc.field.block" class="anchor field"></a><code>block:&nbsp;AstcBlock</code></span><div class="docblock"><p>compressed block dimensions</p>
</div></div><div class="sub-variant-field"><span id="variant.Astc.field.channel" class="variant small-section-header"><a href="#variant.Astc.field.channel" class="anchor field"></a><code>channel:&nbsp;AstcChannel</code></span><div class="docblock"><p>ASTC RGBA channel</p>
</div></div></div><div class="docblock"><p>block compressed texture. 16 bytes per block.</p>
<p>Features <a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_ASTC"><code>TEXTURE_COMPRESSION_ASTC</code></a> or <a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_ASTC_HDR"><code>TEXTURE_COMPRESSION_ASTC_HDR</code></a>
must be enabled to use this texture format.</p>
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TextureFormat" class="impl has-srclink"><a href="#impl-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.aspect_specific_format" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.aspect_specific_format" class="fnname">aspect_specific_format</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;aspect: TextureAspect<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the aspect-specific format of the original format</p>
<p>see <a href="https://gpuweb.github.io/gpuweb/#abstract-opdef-resolving-gputextureaspect">https://gpuweb.github.io/gpuweb/#abstract-opdef-resolving-gputextureaspect</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_depth_stencil_component" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.is_depth_stencil_component" class="fnname">is_depth_stencil_component</a>(&amp;self, combined_format: <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if <code>self</code> is a depth or stencil component of the given
combined depth-stencil format</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_depth_stencil_format" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.is_depth_stencil_format" class="fnname">is_depth_stencil_format</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the format is a depth and/or stencil format</p>
<p>see <a href="https://gpuweb.github.io/gpuweb/#depth-formats">https://gpuweb.github.io/gpuweb/#depth-formats</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_combined_depth_stencil_format" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.is_combined_depth_stencil_format" class="fnname">is_combined_depth_stencil_format</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the format is a combined depth-stencil format</p>
<p>see <a href="https://gpuweb.github.io/gpuweb/#combined-depth-stencil-format">https://gpuweb.github.io/gpuweb/#combined-depth-stencil-format</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.has_color_aspect" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.has_color_aspect" class="fnname">has_color_aspect</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the format has a color aspect</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.has_depth_aspect" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.has_depth_aspect" class="fnname">has_depth_aspect</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the format has a depth aspect</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.has_stencil_aspect" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.has_stencil_aspect" class="fnname">has_stencil_aspect</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the format has a stencil aspect</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.block_dimensions" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.block_dimensions" class="fnname">block_dimensions</a>(&amp;self) -&gt; (<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u32.html">u32</a>)</h4></section></summary><div class="docblock"><p>Returns the dimension of a block of texels.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_compressed" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.is_compressed" class="fnname">is_compressed</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> for compressed formats.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.required_features" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.required_features" class="fnname">required_features</a>(&amp;self) -&gt; <a class="struct" href="struct.Features.html" title="struct maplibre::render::settings::Features">Features</a></h4></section></summary><div class="docblock"><p>Returns the required features (if any) in order to use the texture.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.guaranteed_format_features" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.guaranteed_format_features" class="fnname">guaranteed_format_features</a>(&amp;self) -&gt; TextureFormatFeatures</h4></section></summary><div class="docblock"><p>Returns the format features guaranteed by the WebGPU spec.</p>
<p>Additional features are available if <code>Features::TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES</code> is enabled.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_type" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.sample_type" class="fnname">sample_type</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;aspect: <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;TextureAspect&gt;<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;TextureSampleType&gt;</h4></section></summary><div class="docblock"><p>Returns the sample type compatible with this format and aspect</p>
<p>Returns <code>None</code> only if the format is combined depth-stencil
and <code>TextureAspect::All</code> or no <code>aspect</code> was provided</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.block_size" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.block_size" class="fnname">block_size</a>(&amp;self, aspect: <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;TextureAspect&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u32.html">u32</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the <a href="https://gpuweb.github.io/gpuweb/#texel-block-size">texel block size</a>
of this format.</p>
<p>Returns <code>None</code> if any of the following are true:</p>
<ul>
<li>the format is combined depth-stencil and no <code>aspect</code> was provided</li>
<li>the format is <code>Depth24Plus</code></li>
<li>the format is <code>Depth24PlusStencil8</code> and <code>aspect</code> is depth.</li>
</ul>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.remove_srgb_suffix" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.remove_srgb_suffix" class="fnname">remove_srgb_suffix</a>(&amp;self) -&gt; <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h4></section></summary><div class="docblock"><p>Strips the <code>Srgb</code> suffix from the given texture format.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add_srgb_suffix" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.add_srgb_suffix" class="fnname">add_srgb_suffix</a>(&amp;self) -&gt; <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h4></section></summary><div class="docblock"><p>Adds an <code>Srgb</code> suffix to the given texture format, if the format supports it.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_srgb" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.is_srgb" class="fnname">is_srgb</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> for srgb formats.</p>
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone-for-TextureFormat" class="impl has-srclink"><a href="#impl-Clone-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.65.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.65.0/src/core/clone.rs.html#132-134">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.65.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug-for-TextureFormat" class="impl has-srclink"><a href="#impl-Debug-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.65.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.65.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.65.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Hash-for-TextureFormat" class="impl has-srclink"><a href="#impl-Hash-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl has-srclink"><a href="#method.hash" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/core/hash/trait.Hash.html#tymethod.hash" class="fnname">hash</a>&lt;__H&gt;(&amp;self, state: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>__H)<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__H: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,</span></h4></section></summary><div class='docblock'>Feeds this value into the given <a href="https://doc.rust-lang.org/1.65.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.65.0/core/hash/trait.Hash.html#tymethod.hash">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hash_slice" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.3.0">1.3.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.65.0/src/core/hash/mod.rs.html#237-239">source</a></span><a href="#method.hash_slice" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/core/hash/trait.Hash.html#method.hash_slice" class="fnname">hash_slice</a>&lt;H&gt;(data: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.slice.html">[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>H)<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;H: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,</span></h4></section></summary><div class='docblock'>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/1.65.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.65.0/core/hash/trait.Hash.html#method.hash_slice">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CTextureFormat%3E-for-TextureFormat" class="impl has-srclink"><a href="#impl-PartialEq%3CTextureFormat%3E-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a>&gt; for <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl has-srclink"><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a href="https://doc.rust-lang.org/1.65.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.65.0/src/core/cmp.rs.html#236">source</a></span><a href="#method.ne" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;</a>Rhs) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>This method tests for <code>!=</code>. The default implementation is almost always
sufficient, and should not be overridden without very good reason. <a href="https://doc.rust-lang.org/1.65.0/core/cmp/trait.PartialEq.html#method.ne">Read more</a></div></details></div></details><section id="impl-Copy-for-TextureFormat" class="impl has-srclink"><a href="#impl-Copy-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h3></section><section id="impl-Eq-for-TextureFormat" class="impl has-srclink"><a href="#impl-Eq-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h3></section><section id="impl-StructuralEq-for-TextureFormat" class="impl has-srclink"><a href="#impl-StructuralEq-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h3></section><section id="impl-StructuralPartialEq-for-TextureFormat" class="impl has-srclink"><a href="#impl-StructuralPartialEq-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h3></section></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-TextureFormat" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h3></section><section id="impl-Send-for-TextureFormat" class="impl has-srclink"><a href="#impl-Send-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h3></section><section id="impl-Sync-for-TextureFormat" class="impl has-srclink"><a href="#impl-Sync-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h3></section><section id="impl-Unpin-for-TextureFormat" class="impl has-srclink"><a href="#impl-Unpin-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h3></section><section id="impl-UnwindSafe-for-TextureFormat" class="impl has-srclink"><a href="#impl-UnwindSafe-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="enum" href="enum.TextureFormat.html" title="enum maplibre::render::settings::TextureFormat">TextureFormat</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-TextureFormat" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.65.0/src/core/any.rs.html#200">source</a><a href="#impl-Any-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.65.0/src/core/any.rs.html#201">source</a><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.65.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-TextureFormat" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.65.0/src/core/borrow.rs.html#209">source</a><a href="#impl-Borrow%3CT%3E-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.65.0/src/core/borrow.rs.html#211">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;</a>T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.65.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-TextureFormat" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.65.0/src/core/borrow.rs.html#218">source</a><a href="#impl-BorrowMut%3CT%3E-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.65.0/src/core/borrow.rs.html#219">source</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.65.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-CallHasher-for-TextureFormat" class="impl has-srclink"><a href="#impl-CallHasher-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; CallHasher for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><section id="method.get_hash" class="method trait-impl has-srclink"><a href="#method.get_hash" class="anchor"></a><h4 class="code-header">fn <a class="fnname">get_hash</a>&lt;H, B&gt;(value: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;</a>H, build_hasher: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;</a>B) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u64.html">u64</a><span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;H: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a>,</span></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Downcast%3CT%3E-for-TextureFormat" class="impl has-srclink"><a href="#impl-Downcast%3CT%3E-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; Downcast&lt;T&gt; for T</h3></section></summary><div class="impl-items"><section id="method.downcast" class="method trait-impl has-srclink"><a href="#method.downcast" class="anchor"></a><h4 class="code-header">fn <a class="fnname">downcast</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;</a>T</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Downcast-for-TextureFormat" class="impl has-srclink"><a href="#impl-Downcast-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; Downcast for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_any" class="method trait-impl has-srclink"><a href="#method.into_any" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into_any</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;T, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Convert <code>Box&lt;dyn Trait&gt;</code> (where <code>Trait: Downcast</code>) to <code>Box&lt;dyn Any&gt;</code>. <code>Box&lt;dyn Any&gt;</code> can
then be further <code>downcast</code> into <code>Box&lt;ConcreteType&gt;</code> where <code>ConcreteType</code> implements <code>Trait</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_any_rc" class="method trait-impl has-srclink"><a href="#method.into_any_rc" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into_any_rc</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a>&lt;T&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static&gt;</h4></section></summary><div class='docblock'>Convert <code>Rc&lt;Trait&gt;</code> (where <code>Trait: Downcast</code>) to <code>Rc&lt;Any&gt;</code>. <code>Rc&lt;Any&gt;</code> can then be
further <code>downcast</code> into <code>Rc&lt;ConcreteType&gt;</code> where <code>ConcreteType</code> implements <code>Trait</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_any-1" class="method trait-impl has-srclink"><a href="#method.as_any-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">as_any</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4></section></summary><div class='docblock'>Convert <code>&amp;Trait</code> (where <code>Trait: Downcast</code>) to <code>&amp;Any</code>. This is needed since Rust cannot
generate <code>&amp;Any</code>s vtable from <code>&amp;Trait</code>s. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_any_mut" class="method trait-impl has-srclink"><a href="#method.as_any_mut" class="anchor"></a><h4 class="code-header">fn <a class="fnname">as_any_mut</a>(&amp;mut self) -&gt; &amp;mut (dyn <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4></section></summary><div class='docblock'>Convert <code>&amp;mut Trait</code> (where <code>Trait: Downcast</code>) to <code>&amp;Any</code>. This is needed since Rust cannot
generate <code>&amp;mut Any</code>s vtable from <code>&amp;mut Trait</code>s. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-DowncastSync-for-TextureFormat" class="impl has-srclink"><a href="#impl-DowncastSync-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; DowncastSync for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_any_arc" class="method trait-impl has-srclink"><a href="#method.into_any_arc" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into_any_arc</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;T&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static&gt;</h4></section></summary><div class='docblock'>Convert <code>Arc&lt;Trait&gt;</code> (where <code>Trait: Downcast</code>) to <code>Arc&lt;Any&gt;</code>. <code>Arc&lt;Any&gt;</code> can then be
further <code>downcast</code> into <code>Arc&lt;ConcreteType&gt;</code> where <code>ConcreteType</code> implements <code>Trait</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-DynEq-for-TextureFormat" class="impl has-srclink"><a class="srclink rightside" href="../../../src/maplibre/util/label.rs.html#14-28">source</a><a href="#impl-DynEq-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="../../util/label/trait.DynEq.html" title="trait maplibre::util::label::DynEq">DynEq</a> for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>,</span></h3></section></summary><div class="impl-items"><section id="method.as_any" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/maplibre/util/label.rs.html#18-20">source</a><a href="#method.as_any" class="anchor"></a><h4 class="code-header">fn <a href="../../util/label/trait.DynEq.html#tymethod.as_any" class="fnname">as_any</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4></section><section id="method.dyn_eq" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/maplibre/util/label.rs.html#22-27">source</a><a href="#method.dyn_eq" class="anchor"></a><h4 class="code-header">fn <a href="../../util/label/trait.DynEq.html#tymethod.dyn_eq" class="fnname">dyn_eq</a>(&amp;self, other: &amp;(dyn <a class="trait" href="../../util/label/trait.DynEq.html" title="trait maplibre::util::label::DynEq">DynEq</a> + 'static)) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-DynHash-for-TextureFormat" class="impl has-srclink"><a class="srclink rightside" href="../../../src/maplibre/util/label.rs.html#36-48">source</a><a href="#impl-DynHash-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="../../util/label/trait.DynHash.html" title="trait maplibre::util::label::DynHash">DynHash</a> for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../util/label/trait.DynEq.html" title="trait maplibre::util::label::DynEq">DynEq</a> + <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,</span></h3></section></summary><div class="impl-items"><section id="method.as_dyn_eq" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/maplibre/util/label.rs.html#40-42">source</a><a href="#method.as_dyn_eq" class="anchor"></a><h4 class="code-header">fn <a href="../../util/label/trait.DynHash.html#tymethod.as_dyn_eq" class="fnname">as_dyn_eq</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="../../util/label/trait.DynEq.html" title="trait maplibre::util::label::DynEq">DynEq</a> + 'static)</h4></section><section id="method.dyn_hash" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../../src/maplibre/util/label.rs.html#44-47">source</a><a href="#method.dyn_hash" class="anchor"></a><h4 class="code-header">fn <a href="../../util/label/trait.DynHash.html#tymethod.dyn_hash" class="fnname">dyn_hash</a>(&amp;self, state: &amp;mut dyn <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>)</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Equivalent%3CK%3E-for-TextureFormat" class="impl has-srclink"><a class="srclink rightside" href="https://docs.rs/indexmap/1/src/indexmap/equivalent.rs.html#18">source</a><a href="#impl-Equivalent%3CK%3E-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;Q, K&gt; <a class="trait" href="https://docs.rs/indexmap/1/indexmap/equivalent/trait.Equivalent.html" title="trait indexmap::equivalent::Equivalent">Equivalent</a>&lt;K&gt; for Q<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Q: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt; + ?<a class="trait" href="https://doc.rust-lang.org/1.65.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.equivalent" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://docs.rs/indexmap/1/src/indexmap/equivalent.rs.html#24">source</a><a href="#method.equivalent" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/indexmap/1/indexmap/equivalent/trait.Equivalent.html#tymethod.equivalent" class="fnname">equivalent</a>(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;</a>K) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Compare self to <code>key</code> and return <code>true</code> if they are equal.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-TextureFormat" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.65.0/src/core/convert/mod.rs.html#559">source</a><a href="#impl-From%3CT%3E-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.65.0/src/core/convert/mod.rs.html#562">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Instrument-for-TextureFormat" class="impl has-srclink"><a class="srclink rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#276">source</a><a href="#impl-Instrument-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html" title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#82">source</a><a href="#method.instrument" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument" class="fnname">instrument</a>(self, span: <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -&gt; <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the provided <a href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html" title="Span"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#121">source</a><a href="#method.in_current_span" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.in_current_span" class="fnname">in_current_span</a>(self) -&gt; <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the <a href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html#method.current">current</a> <a href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-TextureFormat" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.65.0/src/core/convert/mod.rs.html#543">source</a><a href="#impl-Into%3CU%3E-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.65.0/src/core/convert/mod.rs.html#551">source</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code><a href="https://doc.rust-lang.org/1.65.0/core/convert/trait.From.html" title="From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Same%3CT%3E-for-TextureFormat" class="impl has-srclink"><a class="srclink rightside" href="https://docs.rs/typenum/1.16.0/src/typenum/type_operators.rs.html#34">source</a><a href="#impl-Same%3CT%3E-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://docs.rs/typenum/1.16.0/typenum/type_operators/trait.Same.html" title="trait typenum::type_operators::Same">Same</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output" class="anchor"></a><h4 class="code-header">type <a href="https://docs.rs/typenum/1.16.0/typenum/type_operators/trait.Same.html#associatedtype.Output" class="associatedtype">Output</a> = T</h4></section></summary><div class='docblock'>Should always be <code>Self</code></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ToOwned-for-TextureFormat" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.65.0/src/alloc/borrow.rs.html#83">source</a><a href="#impl-ToOwned-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Owned" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.65.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.65.0/src/alloc/borrow.rs.html#88">source</a><a href="#method.to_owned" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fnname">to_owned</a>(&amp;self) -&gt; T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.65.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.65.0/src/alloc/borrow.rs.html#92">source</a><a href="#method.clone_into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fnname">clone_into</a>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>T)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.65.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-TextureFormat" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.65.0/src/core/convert/mod.rs.html#601">source</a><a href="#impl-TryFrom%3CU%3E-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.65.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.65.0/src/core/convert/mod.rs.html#607">source</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.65.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-TextureFormat" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.65.0/src/core/convert/mod.rs.html#586">source</a><a href="#impl-TryInto%3CU%3E-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.65.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.65.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.65.0/src/core/convert/mod.rs.html#592">source</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.65.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.65.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Upcast%3CT%3E-for-TextureFormat" class="impl has-srclink"><a href="#impl-Upcast%3CT%3E-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; Upcast&lt;T&gt; for T</h3></section></summary><div class="impl-items"><section id="method.upcast" class="method trait-impl has-srclink"><a href="#method.upcast" class="anchor"></a><h4 class="code-header">fn <a class="fnname">upcast</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;</a>T&gt;</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-TextureFormat" class="impl has-srclink"><a class="srclink rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#334">source</a><a href="#impl-WithSubscriber-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html" title="trait tracing::instrument::WithSubscriber">WithSubscriber</a> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#169-171">source</a><a href="#method.with_subscriber" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber" class="fnname">with_subscriber</a>&lt;S&gt;(self, subscriber: S) -&gt; <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://docs.rs/tracing-core/0.1.22/tracing_core/dispatcher/struct.Dispatch.html" title="struct tracing_core::dispatcher::Dispatch">Dispatch</a>&gt;,</span></h4></section></summary><div class='docblock'>Attaches the provided <a href="https://docs.rs/tracing-core/0.1.22/tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
<a href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#221">source</a><a href="#method.with_current_subscriber" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber" class="fnname">with_current_subscriber</a>(self) -&gt; <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;Self&gt;</h4></section></summary><div class='docblock'>Attaches the current <a href="https://docs.rs/tracing/0.1.37/tracing/dispatcher/index.html#setting-the-default-subscriber">default</a> <a href="https://docs.rs/tracing-core/0.1.22/tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
<a href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Within%3CG2%3E-for-TextureFormat" class="impl has-srclink"><a href="#impl-Within%3CG2%3E-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;G1, G2&gt; Within&lt;G2&gt; for G1<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;G2: Contains&lt;G1&gt;,</span></h3></section></summary><div class="impl-items"><section id="method.is_within" class="method trait-impl has-srclink"><a href="#method.is_within" class="anchor"></a><h4 class="code-header">fn <a class="fnname">is_within</a>(&amp;self, b: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;</a>G2) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></section></div></details><section id="impl-Resource-for-TextureFormat" class="impl has-srclink"><a class="srclink rightside" href="../../../src/maplibre/tcs/resources.rs.html#10">source</a><a href="#impl-Resource-for-TextureFormat" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="../../tcs/resources/trait.Resource.html" title="trait maplibre::tcs::resources::Resource">Resource</a> for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static,</span></h3></section></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>