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

308 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."><title>TextureFormat in maplibre::render::settings - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="maplibre" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0 (cc66ad468 2023-10-03)" data-channel="1.73.0" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-1596385f77d47ef2.css" data-theme-dark-css="dark-0a43001d3fc2282c.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../../../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../../static.files/light-1596385f77d47ef2.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../../static.files/dark-0a43001d3fc2282c.css"><link rel="stylesheet" href="../../../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.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="logo-container" href="../../../maplibre/index.html"><img class="rust-logo" src="../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../../maplibre/index.html"><img class="rust-logo" src="../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">TextureFormat</a></h2><div class="sidebar-elems"><section><h3><a href="#variants">Variants</a></h3><ul class="block"><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.Bc6hRgbFloat">Bc6hRgbFloat</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><h3><a href="#implementations">Methods</a></h3><ul class="block"><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.components">components</a></li><li><a href="#method.components_with_aspect">components_with_aspect</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><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><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><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><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><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><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-Downcast-for-TextureFormat">Downcast</a></li><li><a href="#impl-Downcast%3CT%3E-for-TextureFormat">Downcast&lt;T&gt;</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-Equivalent%3CK%3E-for-TextureFormat-1">Equivalent&lt;K&gt;</a></li><li><a href="#impl-Equivalent%3CK%3E-for-TextureFormat-2">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-WasmNotSend-for-TextureFormat">WasmNotSend</a></li><li><a href="#impl-WasmNotSync-for-TextureFormat">WasmNotSync</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></section><h2><a href="index.html">In maplibre::render::settings</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>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" title="Copy item path to clipboard"><img src="../../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub enum TextureFormat {
<details class="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,
Bc6hRgbFloat,
Bc7RgbaUnorm,
Bc7RgbaUnormSrgb,
Etc2Rgb8Unorm,
Etc2Rgb8UnormSrgb,
Etc2Rgb8A1Unorm,
Etc2Rgb8A1UnormSrgb,
Etc2Rgba8Unorm,
Etc2Rgba8UnormSrgb,
EacR11Unorm,
EacR11Snorm,
EacRg11Unorm,
EacRg11Snorm,
Astc {
block: AstcBlock,
channel: AstcChannel,
},
</details>}</code></pre><details class="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><div class="variants"><section id="variant.R8Unorm" class="variant"><a href="#variant.R8Unorm" class="anchor">§</a><h3 class="code-header">R8Unorm</h3></section><div class="docblock"><p>Red channel only. 8 bit integer per channel. [0, 255] converted to/from float [0, 1] in shader.</p>
</div><section id="variant.R8Snorm" class="variant"><a href="#variant.R8Snorm" class="anchor">§</a><h3 class="code-header">R8Snorm</h3></section><div class="docblock"><p>Red channel only. 8 bit integer per channel. [-127, 127] converted to/from float [-1, 1] in shader.</p>
</div><section id="variant.R8Uint" class="variant"><a href="#variant.R8Uint" class="anchor">§</a><h3 class="code-header">R8Uint</h3></section><div class="docblock"><p>Red channel only. 8 bit integer per channel. Unsigned in shader.</p>
</div><section id="variant.R8Sint" class="variant"><a href="#variant.R8Sint" class="anchor">§</a><h3 class="code-header">R8Sint</h3></section><div class="docblock"><p>Red channel only. 8 bit integer per channel. Signed in shader.</p>
</div><section id="variant.R16Uint" class="variant"><a href="#variant.R16Uint" class="anchor">§</a><h3 class="code-header">R16Uint</h3></section><div class="docblock"><p>Red channel only. 16 bit integer per channel. Unsigned in shader.</p>
</div><section id="variant.R16Sint" class="variant"><a href="#variant.R16Sint" class="anchor">§</a><h3 class="code-header">R16Sint</h3></section><div class="docblock"><p>Red channel only. 16 bit integer per channel. Signed in shader.</p>
</div><section id="variant.R16Unorm" class="variant"><a href="#variant.R16Unorm" class="anchor">§</a><h3 class="code-header">R16Unorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_FORMAT_16BIT_NORM"><code>Features::TEXTURE_FORMAT_16BIT_NORM</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.R16Snorm" class="variant"><a href="#variant.R16Snorm" class="anchor">§</a><h3 class="code-header">R16Snorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_FORMAT_16BIT_NORM"><code>Features::TEXTURE_FORMAT_16BIT_NORM</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.R16Float" class="variant"><a href="#variant.R16Float" class="anchor">§</a><h3 class="code-header">R16Float</h3></section><div class="docblock"><p>Red channel only. 16 bit float per channel. Float in shader.</p>
</div><section id="variant.Rg8Unorm" class="variant"><a href="#variant.Rg8Unorm" class="anchor">§</a><h3 class="code-header">Rg8Unorm</h3></section><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><section id="variant.Rg8Snorm" class="variant"><a href="#variant.Rg8Snorm" class="anchor">§</a><h3 class="code-header">Rg8Snorm</h3></section><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><section id="variant.Rg8Uint" class="variant"><a href="#variant.Rg8Uint" class="anchor">§</a><h3 class="code-header">Rg8Uint</h3></section><div class="docblock"><p>Red and green channels. 8 bit integer per channel. Unsigned in shader.</p>
</div><section id="variant.Rg8Sint" class="variant"><a href="#variant.Rg8Sint" class="anchor">§</a><h3 class="code-header">Rg8Sint</h3></section><div class="docblock"><p>Red and green channels. 8 bit integer per channel. Signed in shader.</p>
</div><section id="variant.R32Uint" class="variant"><a href="#variant.R32Uint" class="anchor">§</a><h3 class="code-header">R32Uint</h3></section><div class="docblock"><p>Red channel only. 32 bit integer per channel. Unsigned in shader.</p>
</div><section id="variant.R32Sint" class="variant"><a href="#variant.R32Sint" class="anchor">§</a><h3 class="code-header">R32Sint</h3></section><div class="docblock"><p>Red channel only. 32 bit integer per channel. Signed in shader.</p>
</div><section id="variant.R32Float" class="variant"><a href="#variant.R32Float" class="anchor">§</a><h3 class="code-header">R32Float</h3></section><div class="docblock"><p>Red channel only. 32 bit float per channel. Float in shader.</p>
</div><section id="variant.Rg16Uint" class="variant"><a href="#variant.Rg16Uint" class="anchor">§</a><h3 class="code-header">Rg16Uint</h3></section><div class="docblock"><p>Red and green channels. 16 bit integer per channel. Unsigned in shader.</p>
</div><section id="variant.Rg16Sint" class="variant"><a href="#variant.Rg16Sint" class="anchor">§</a><h3 class="code-header">Rg16Sint</h3></section><div class="docblock"><p>Red and green channels. 16 bit integer per channel. Signed in shader.</p>
</div><section id="variant.Rg16Unorm" class="variant"><a href="#variant.Rg16Unorm" class="anchor">§</a><h3 class="code-header">Rg16Unorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_FORMAT_16BIT_NORM"><code>Features::TEXTURE_FORMAT_16BIT_NORM</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Rg16Snorm" class="variant"><a href="#variant.Rg16Snorm" class="anchor">§</a><h3 class="code-header">Rg16Snorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_FORMAT_16BIT_NORM"><code>Features::TEXTURE_FORMAT_16BIT_NORM</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Rg16Float" class="variant"><a href="#variant.Rg16Float" class="anchor">§</a><h3 class="code-header">Rg16Float</h3></section><div class="docblock"><p>Red and green channels. 16 bit float per channel. Float in shader.</p>
</div><section id="variant.Rgba8Unorm" class="variant"><a href="#variant.Rgba8Unorm" class="anchor">§</a><h3 class="code-header">Rgba8Unorm</h3></section><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><section id="variant.Rgba8UnormSrgb" class="variant"><a href="#variant.Rgba8UnormSrgb" class="anchor">§</a><h3 class="code-header">Rgba8UnormSrgb</h3></section><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><section id="variant.Rgba8Snorm" class="variant"><a href="#variant.Rgba8Snorm" class="anchor">§</a><h3 class="code-header">Rgba8Snorm</h3></section><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><section id="variant.Rgba8Uint" class="variant"><a href="#variant.Rgba8Uint" class="anchor">§</a><h3 class="code-header">Rgba8Uint</h3></section><div class="docblock"><p>Red, green, blue, and alpha channels. 8 bit integer per channel. Unsigned in shader.</p>
</div><section id="variant.Rgba8Sint" class="variant"><a href="#variant.Rgba8Sint" class="anchor">§</a><h3 class="code-header">Rgba8Sint</h3></section><div class="docblock"><p>Red, green, blue, and alpha channels. 8 bit integer per channel. Signed in shader.</p>
</div><section id="variant.Bgra8Unorm" class="variant"><a href="#variant.Bgra8Unorm" class="anchor">§</a><h3 class="code-header">Bgra8Unorm</h3></section><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><section id="variant.Bgra8UnormSrgb" class="variant"><a href="#variant.Bgra8UnormSrgb" class="anchor">§</a><h3 class="code-header">Bgra8UnormSrgb</h3></section><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><section id="variant.Rgb9e5Ufloat" class="variant"><a href="#variant.Rgb9e5Ufloat" class="anchor">§</a><h3 class="code-header">Rgb9e5Ufloat</h3></section><div class="docblock"><p>Packed unsigned float with 9 bits mantisa for each RGB component, then a common 5 bits exponent</p>
</div><section id="variant.Rgb10a2Unorm" class="variant"><a href="#variant.Rgb10a2Unorm" class="anchor">§</a><h3 class="code-header">Rgb10a2Unorm</h3></section><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><section id="variant.Rg11b10Float" class="variant"><a href="#variant.Rg11b10Float" class="anchor">§</a><h3 class="code-header">Rg11b10Float</h3></section><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><section id="variant.Rg32Uint" class="variant"><a href="#variant.Rg32Uint" class="anchor">§</a><h3 class="code-header">Rg32Uint</h3></section><div class="docblock"><p>Red and green channels. 32 bit integer per channel. Unsigned in shader.</p>
</div><section id="variant.Rg32Sint" class="variant"><a href="#variant.Rg32Sint" class="anchor">§</a><h3 class="code-header">Rg32Sint</h3></section><div class="docblock"><p>Red and green channels. 32 bit integer per channel. Signed in shader.</p>
</div><section id="variant.Rg32Float" class="variant"><a href="#variant.Rg32Float" class="anchor">§</a><h3 class="code-header">Rg32Float</h3></section><div class="docblock"><p>Red and green channels. 32 bit float per channel. Float in shader.</p>
</div><section id="variant.Rgba16Uint" class="variant"><a href="#variant.Rgba16Uint" class="anchor">§</a><h3 class="code-header">Rgba16Uint</h3></section><div class="docblock"><p>Red, green, blue, and alpha channels. 16 bit integer per channel. Unsigned in shader.</p>
</div><section id="variant.Rgba16Sint" class="variant"><a href="#variant.Rgba16Sint" class="anchor">§</a><h3 class="code-header">Rgba16Sint</h3></section><div class="docblock"><p>Red, green, blue, and alpha channels. 16 bit integer per channel. Signed in shader.</p>
</div><section id="variant.Rgba16Unorm" class="variant"><a href="#variant.Rgba16Unorm" class="anchor">§</a><h3 class="code-header">Rgba16Unorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_FORMAT_16BIT_NORM"><code>Features::TEXTURE_FORMAT_16BIT_NORM</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Rgba16Snorm" class="variant"><a href="#variant.Rgba16Snorm" class="anchor">§</a><h3 class="code-header">Rgba16Snorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_FORMAT_16BIT_NORM"><code>Features::TEXTURE_FORMAT_16BIT_NORM</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Rgba16Float" class="variant"><a href="#variant.Rgba16Float" class="anchor">§</a><h3 class="code-header">Rgba16Float</h3></section><div class="docblock"><p>Red, green, blue, and alpha channels. 16 bit float per channel. Float in shader.</p>
</div><section id="variant.Rgba32Uint" class="variant"><a href="#variant.Rgba32Uint" class="anchor">§</a><h3 class="code-header">Rgba32Uint</h3></section><div class="docblock"><p>Red, green, blue, and alpha channels. 32 bit integer per channel. Unsigned in shader.</p>
</div><section id="variant.Rgba32Sint" class="variant"><a href="#variant.Rgba32Sint" class="anchor">§</a><h3 class="code-header">Rgba32Sint</h3></section><div class="docblock"><p>Red, green, blue, and alpha channels. 32 bit integer per channel. Signed in shader.</p>
</div><section id="variant.Rgba32Float" class="variant"><a href="#variant.Rgba32Float" class="anchor">§</a><h3 class="code-header">Rgba32Float</h3></section><div class="docblock"><p>Red, green, blue, and alpha channels. 32 bit float per channel. Float in shader.</p>
</div><section id="variant.Stencil8" class="variant"><a href="#variant.Stencil8" class="anchor">§</a><h3 class="code-header">Stencil8</h3></section><div class="docblock"><p>Stencil format with 8 bit integer stencil.</p>
</div><section id="variant.Depth16Unorm" class="variant"><a href="#variant.Depth16Unorm" class="anchor">§</a><h3 class="code-header">Depth16Unorm</h3></section><div class="docblock"><p>Special depth format with 16 bit integer depth.</p>
</div><section id="variant.Depth24Plus" class="variant"><a href="#variant.Depth24Plus" class="anchor">§</a><h3 class="code-header">Depth24Plus</h3></section><div class="docblock"><p>Special depth format with at least 24 bit integer depth.</p>
</div><section id="variant.Depth24PlusStencil8" class="variant"><a href="#variant.Depth24PlusStencil8" class="anchor">§</a><h3 class="code-header">Depth24PlusStencil8</h3></section><div class="docblock"><p>Special depth/stencil format with at least 24 bit integer depth and 8 bits integer stencil.</p>
</div><section id="variant.Depth32Float" class="variant"><a href="#variant.Depth32Float" class="anchor">§</a><h3 class="code-header">Depth32Float</h3></section><div class="docblock"><p>Special depth format with 32 bit floating point depth.</p>
</div><section id="variant.Depth32FloatStencil8" class="variant"><a href="#variant.Depth32FloatStencil8" class="anchor">§</a><h3 class="code-header">Depth32FloatStencil8</h3></section><div class="docblock"><p>Special depth/stencil format with 32 bit floating point depth and 8 bits integer stencil.</p>
<p><a href="struct.Features.html#associatedconstant.DEPTH32FLOAT_STENCIL8" title="associated constant maplibre::render::settings::Features::DEPTH32FLOAT_STENCIL8"><code>Features::DEPTH32FLOAT_STENCIL8</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Bc1RgbaUnorm" class="variant"><a href="#variant.Bc1RgbaUnorm" class="anchor">§</a><h3 class="code-header">Bc1RgbaUnorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Bc1RgbaUnormSrgb" class="variant"><a href="#variant.Bc1RgbaUnormSrgb" class="anchor">§</a><h3 class="code-header">Bc1RgbaUnormSrgb</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Bc2RgbaUnorm" class="variant"><a href="#variant.Bc2RgbaUnorm" class="anchor">§</a><h3 class="code-header">Bc2RgbaUnorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Bc2RgbaUnormSrgb" class="variant"><a href="#variant.Bc2RgbaUnormSrgb" class="anchor">§</a><h3 class="code-header">Bc2RgbaUnormSrgb</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Bc3RgbaUnorm" class="variant"><a href="#variant.Bc3RgbaUnorm" class="anchor">§</a><h3 class="code-header">Bc3RgbaUnorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Bc3RgbaUnormSrgb" class="variant"><a href="#variant.Bc3RgbaUnormSrgb" class="anchor">§</a><h3 class="code-header">Bc3RgbaUnormSrgb</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Bc4RUnorm" class="variant"><a href="#variant.Bc4RUnorm" class="anchor">§</a><h3 class="code-header">Bc4RUnorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Bc4RSnorm" class="variant"><a href="#variant.Bc4RSnorm" class="anchor">§</a><h3 class="code-header">Bc4RSnorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Bc5RgUnorm" class="variant"><a href="#variant.Bc5RgUnorm" class="anchor">§</a><h3 class="code-header">Bc5RgUnorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Bc5RgSnorm" class="variant"><a href="#variant.Bc5RgSnorm" class="anchor">§</a><h3 class="code-header">Bc5RgSnorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Bc6hRgbUfloat" class="variant"><a href="#variant.Bc6hRgbUfloat" class="anchor">§</a><h3 class="code-header">Bc6hRgbUfloat</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Bc6hRgbFloat" class="variant"><a href="#variant.Bc6hRgbFloat" class="anchor">§</a><h3 class="code-header">Bc6hRgbFloat</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Bc7RgbaUnorm" class="variant"><a href="#variant.Bc7RgbaUnorm" class="anchor">§</a><h3 class="code-header">Bc7RgbaUnorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Bc7RgbaUnormSrgb" class="variant"><a href="#variant.Bc7RgbaUnormSrgb" class="anchor">§</a><h3 class="code-header">Bc7RgbaUnormSrgb</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_BC"><code>Features::TEXTURE_COMPRESSION_BC</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Etc2Rgb8Unorm" class="variant"><a href="#variant.Etc2Rgb8Unorm" class="anchor">§</a><h3 class="code-header">Etc2Rgb8Unorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Etc2Rgb8UnormSrgb" class="variant"><a href="#variant.Etc2Rgb8UnormSrgb" class="anchor">§</a><h3 class="code-header">Etc2Rgb8UnormSrgb</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Etc2Rgb8A1Unorm" class="variant"><a href="#variant.Etc2Rgb8A1Unorm" class="anchor">§</a><h3 class="code-header">Etc2Rgb8A1Unorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Etc2Rgb8A1UnormSrgb" class="variant"><a href="#variant.Etc2Rgb8A1UnormSrgb" class="anchor">§</a><h3 class="code-header">Etc2Rgb8A1UnormSrgb</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Etc2Rgba8Unorm" class="variant"><a href="#variant.Etc2Rgba8Unorm" class="anchor">§</a><h3 class="code-header">Etc2Rgba8Unorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Etc2Rgba8UnormSrgb" class="variant"><a href="#variant.Etc2Rgba8UnormSrgb" class="anchor">§</a><h3 class="code-header">Etc2Rgba8UnormSrgb</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.EacR11Unorm" class="variant"><a href="#variant.EacR11Unorm" class="anchor">§</a><h3 class="code-header">EacR11Unorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.EacR11Snorm" class="variant"><a href="#variant.EacR11Snorm" class="anchor">§</a><h3 class="code-header">EacR11Snorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.EacRg11Unorm" class="variant"><a href="#variant.EacRg11Unorm" class="anchor">§</a><h3 class="code-header">EacRg11Unorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.EacRg11Snorm" class="variant"><a href="#variant.EacRg11Snorm" class="anchor">§</a><h3 class="code-header">EacRg11Snorm</h3></section><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="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_ETC2"><code>Features::TEXTURE_COMPRESSION_ETC2</code></a> must be enabled to use this texture format.</p>
</div><section id="variant.Astc" class="variant"><a href="#variant.Astc" class="anchor">§</a><h3 class="code-header">Astc</h3></section><div class="sub-variant" id="variant.Astc.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Astc.field.block" class="small-section-header"><a href="#variant.Astc.field.block" class="anchor field">§</a><code>block: 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="small-section-header"><a href="#variant.Astc.field.channel" class="anchor field">§</a><code>channel: 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" title="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_ASTC"><code>TEXTURE_COMPRESSION_ASTC</code></a> or <a href="struct.Features.html#associatedconstant.TEXTURE_COMPRESSION_ASTC_HDR" title="associated constant maplibre::render::settings::Features::TEXTURE_COMPRESSION_ASTC_HDR"><code>TEXTURE_COMPRESSION_ASTC_HDR</code></a>
must be enabled to use this texture format.</p>
</div></div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-TextureFormat" class="impl"><a href="#impl-TextureFormat" class="anchor">§</a><h3 class="code-header">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="toggle method-toggle" open><summary><section id="method.aspect_specific_format" class="method"><h4 class="code-header">pub fn <a href="#method.aspect_specific_format" class="fn">aspect_specific_format</a>(
&amp;self,
aspect: TextureAspect
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.is_depth_stencil_component" class="method"><h4 class="code-header">pub fn <a href="#method.is_depth_stencil_component" class="fn">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.73.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="toggle method-toggle" open><summary><section id="method.is_depth_stencil_format" class="method"><h4 class="code-header">pub fn <a href="#method.is_depth_stencil_format" class="fn">is_depth_stencil_format</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.is_combined_depth_stencil_format" class="method"><h4 class="code-header">pub fn <a href="#method.is_combined_depth_stencil_format" class="fn">is_combined_depth_stencil_format</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.has_color_aspect" class="method"><h4 class="code-header">pub fn <a href="#method.has_color_aspect" class="fn">has_color_aspect</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.has_depth_aspect" class="method"><h4 class="code-header">pub fn <a href="#method.has_depth_aspect" class="fn">has_depth_aspect</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.has_stencil_aspect" class="method"><h4 class="code-header">pub fn <a href="#method.has_stencil_aspect" class="fn">has_stencil_aspect</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.block_dimensions" class="method"><h4 class="code-header">pub fn <a href="#method.block_dimensions" class="fn">block_dimensions</a>(&amp;self) -&gt; (<a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.is_compressed" class="method"><h4 class="code-header">pub fn <a href="#method.is_compressed" class="fn">is_compressed</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.required_features" class="method"><h4 class="code-header">pub fn <a href="#method.required_features" class="fn">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="toggle method-toggle" open><summary><section id="method.guaranteed_format_features" class="method"><h4 class="code-header">pub fn <a href="#method.guaranteed_format_features" class="fn">guaranteed_format_features</a>(
&amp;self,
device_features: <a class="struct" href="struct.Features.html" title="struct maplibre::render::settings::Features">Features</a>
) -&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="toggle method-toggle" open><summary><section id="method.sample_type" class="method"><h4 class="code-header">pub fn <a href="#method.sample_type" class="fn">sample_type</a>(
&amp;self,
aspect: <a class="enum" href="https://doc.rust-lang.org/1.73.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.73.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="toggle method-toggle" open><summary><section id="method.block_size" class="method"><h4 class="code-header">pub fn <a href="#method.block_size" class="fn">block_size</a>(&amp;self, aspect: <a class="enum" href="https://doc.rust-lang.org/1.73.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.73.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.components" class="method"><h4 class="code-header">pub fn <a href="#method.components" class="fn">components</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.u8.html">u8</a></h4></section></summary><div class="docblock"><p>Returns the number of components this format has.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.components_with_aspect" class="method"><h4 class="code-header">pub fn <a href="#method.components_with_aspect" class="fn">components_with_aspect</a>(&amp;self, aspect: TextureAspect) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.u8.html">u8</a></h4></section></summary><div class="docblock"><p>Returns the number of components this format has taking into account the <code>aspect</code>.</p>
<p>The <code>aspect</code> is only relevant for combined depth-stencil formats.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.remove_srgb_suffix" class="method"><h4 class="code-header">pub fn <a href="#method.remove_srgb_suffix" class="fn">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="toggle method-toggle" open><summary><section id="method.add_srgb_suffix" class="method"><h4 class="code-header">pub fn <a href="#method.add_srgb_suffix" class="fn">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="toggle method-toggle" open><summary><section id="method.is_srgb" class="method"><h4 class="code-header">pub fn <a href="#method.is_srgb" class="fn">is_srgb</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.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="toggle implementors-toggle" open><summary><section id="impl-Clone-for-TextureFormat" class="impl"><a href="#impl-Clone-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">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.73.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.73.0/src/core/clone.rs.html#169">source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.reference.html">&amp;Self</a>)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.73.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-TextureFormat" class="impl"><a href="#impl-Debug-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.73.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.73.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.73.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.73.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Hash-for-TextureFormat" class="impl"><a href="#impl-Hash-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl"><a href="#method.hash" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/core/hash/trait.Hash.html#tymethod.hash" class="fn">hash</a>&lt;__H&gt;(&amp;self, state: <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.reference.html">&amp;mut __H</a>)<span class="where fmt-newline">where
__H: <a class="trait" href="https://doc.rust-lang.org/1.73.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.73.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.73.0/core/hash/trait.Hash.html#tymethod.hash">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.hash_slice" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.3.0">1.3.0</span> · <a class="src" href="https://doc.rust-lang.org/1.73.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.73.0/core/hash/trait.Hash.html#method.hash_slice" class="fn">hash_slice</a>&lt;H&gt;(data: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.slice.html">[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.reference.html">&amp;mut H</a>)<span class="where fmt-newline">where
H: <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,
Self: <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</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.73.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.73.0/core/hash/trait.Hash.html#method.hash_slice">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CTextureFormat%3E-for-TextureFormat" class="impl"><a href="#impl-PartialEq%3CTextureFormat%3E-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">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.73.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>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.73.0/src/core/cmp.rs.html#226">source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.reference.html">&amp;Rhs</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.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.</div></details></div></details><section id="impl-Copy-for-TextureFormat" class="impl"><a href="#impl-Copy-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.73.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"><a href="#impl-Eq-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.73.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"><a href="#impl-StructuralEq-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.73.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"><a href="#impl-StructuralPartialEq-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.73.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"><a href="#impl-RefUnwindSafe-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.73.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"><a href="#impl-Send-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.73.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"><a href="#impl-Sync-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.73.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"><a href="#impl-Unpin-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.73.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"><a href="#impl-UnwindSafe-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.73.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="toggle implementors-toggle"><summary><section id="impl-Any-for-TextureFormat" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/core/any.rs.html#135">source</a><a href="#impl-Any-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<span class="where fmt-newline">where
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.73.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/core/any.rs.html#136">source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.73.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.73.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-TextureFormat" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/core/borrow.rs.html#208">source</a><a href="#impl-Borrow%3CT%3E-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<span class="where fmt-newline">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.73.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/core/borrow.rs.html#210">source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.73.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-TextureFormat" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/core/borrow.rs.html#216">source</a><a href="#impl-BorrowMut%3CT%3E-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<span class="where fmt-newline">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.73.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/core/borrow.rs.html#217">source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.73.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Downcast%3CT%3E-for-TextureFormat" class="impl"><a href="#impl-Downcast%3CT%3E-for-TextureFormat" class="anchor">§</a><h3 class="code-header">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"><a href="#method.downcast" class="anchor">§</a><h4 class="code-header">fn <a class="fn">downcast</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.reference.html">&amp;T</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Downcast-for-TextureFormat" class="impl"><a href="#impl-Downcast-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; Downcast for T<span class="where fmt-newline">where
T: <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_any" class="method trait-impl"><a href="#method.into_any" class="anchor">§</a><h4 class="code-header">fn <a class="fn">into_any</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.73.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.73.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.73.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.73.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>, <a class="struct" href="https://doc.rust-lang.org/1.73.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>.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_any_rc" class="method trait-impl"><a href="#method.into_any_rc" class="anchor">§</a><h4 class="code-header">fn <a class="fn">into_any_rc</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.73.0/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a>&lt;T, <a class="struct" href="https://doc.rust-lang.org/1.73.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.73.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.73.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>, <a class="struct" href="https://doc.rust-lang.org/1.73.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&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>.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_any-1" class="method trait-impl"><a href="#method.as_any-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">as_any</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="https://doc.rust-lang.org/1.73.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.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_any_mut" class="method trait-impl"><a href="#method.as_any_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">as_any_mut</a>(&amp;mut self) -&gt; &amp;mut (dyn <a class="trait" href="https://doc.rust-lang.org/1.73.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.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-DowncastSync-for-TextureFormat" class="impl"><a href="#impl-DowncastSync-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; DowncastSync for T<span class="where fmt-newline">where
T: <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_any_arc" class="method trait-impl"><a href="#method.into_any_arc" class="anchor">§</a><h4 class="code-header">fn <a class="fn">into_any_arc</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.73.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;T, <a class="struct" href="https://doc.rust-lang.org/1.73.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.73.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.73.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, <a class="struct" href="https://doc.rust-lang.org/1.73.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&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>.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-DynEq-for-TextureFormat" class="impl"><a class="src 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">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
T: <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.73.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"><a class="src 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="fn">as_any</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="https://doc.rust-lang.org/1.73.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"><a class="src 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="fn">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.73.0/std/primitive.bool.html">bool</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-DynHash-for-TextureFormat" class="impl"><a class="src 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">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
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.73.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"><a class="src 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="fn">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"><a class="src 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="fn">dyn_hash</a>(&amp;self, state: &amp;mut dyn <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Equivalent%3CK%3E-for-TextureFormat" class="impl"><a href="#impl-Equivalent%3CK%3E-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;Q, K&gt; Equivalent&lt;K&gt; for Q<span class="where fmt-newline">where
Q: <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.73.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
K: <a class="trait" href="https://doc.rust-lang.org/1.73.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.73.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.equivalent" class="method trait-impl"><a href="#method.equivalent" class="anchor">§</a><h4 class="code-header">fn <a class="fn">equivalent</a>(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.reference.html">&amp;K</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks if this value is equivalent to the given key. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Equivalent%3CK%3E-for-TextureFormat-1" class="impl"><a href="#impl-Equivalent%3CK%3E-for-TextureFormat-1" class="anchor">§</a><h3 class="code-header">impl&lt;Q, K&gt; Equivalent&lt;K&gt; for Q<span class="where fmt-newline">where
Q: <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.73.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
K: <a class="trait" href="https://doc.rust-lang.org/1.73.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.73.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.equivalent-1" class="method trait-impl"><a href="#method.equivalent-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">equivalent</a>(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.reference.html">&amp;K</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.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="toggle implementors-toggle"><summary><section id="impl-Equivalent%3CK%3E-for-TextureFormat-2" class="impl"><a class="src rightside" href="https://docs.rs/indexmap/1/src/indexmap/equivalent.rs.html#18">source</a><a href="#impl-Equivalent%3CK%3E-for-TextureFormat-2" class="anchor">§</a><h3 class="code-header">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
Q: <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.73.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
K: <a class="trait" href="https://doc.rust-lang.org/1.73.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.73.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.equivalent-2" class="method trait-impl"><a class="src rightside" href="https://docs.rs/indexmap/1/src/indexmap/equivalent.rs.html#24">source</a><a href="#method.equivalent-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/indexmap/1/indexmap/equivalent/trait.Equivalent.html#tymethod.equivalent" class="fn">equivalent</a>(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.reference.html">&amp;K</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.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="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-TextureFormat" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/core/convert/mod.rs.html#722">source</a><a href="#impl-From%3CT%3E-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/core/convert/mod.rs.html#725">source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-TextureFormat" class="impl"><a href="#impl-Instrument-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; Instrument for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a class="fn">instrument</a>(self, span: Span) -&gt; Instrumented&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the provided [<code>Span</code>], returning an
<code>Instrumented</code> wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a class="fn">in_current_span</a>(self) -&gt; Instrumented&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the <a href="super::Span::current()">current</a> <a href="crate::Span"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-TextureFormat" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/core/convert/mod.rs.html#706">source</a><a href="#impl-Into%3CU%3E-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<span class="where fmt-newline">where
U: <a class="trait" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/core/convert/mod.rs.html#715">source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/core/convert/trait.Into.html#tymethod.into" class="fn">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.73.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same%3CT%3E-for-TextureFormat" class="impl"><a class="src rightside" href="https://docs.rs/typenum/1.17.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">impl&lt;T&gt; <a class="trait" href="https://docs.rs/typenum/1.17.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="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="https://docs.rs/typenum/1.17.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="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-TextureFormat" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/alloc/borrow.rs.html#82">source</a><a href="#impl-ToOwned-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.73.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<span class="where fmt-newline">where
T: <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/alloc/borrow.rs.html#87">source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">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.73.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/alloc/borrow.rs.html#91">source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.reference.html">&amp;mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.73.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-TextureFormat" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/core/convert/mod.rs.html#762">source</a><a href="#impl-TryFrom%3CU%3E-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<span class="where fmt-newline">where
U: <a class="trait" href="https://doc.rust-lang.org/1.73.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="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.73.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.73.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="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/core/convert/mod.rs.html#769">source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.73.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.73.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.73.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="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-TextureFormat" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/core/convert/mod.rs.html#747">source</a><a href="#impl-TryInto%3CU%3E-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<span class="where fmt-newline">where
U: <a class="trait" href="https://doc.rust-lang.org/1.73.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="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.73.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.73.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.73.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="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.73.0/src/core/convert/mod.rs.html#754">source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.73.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.73.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.73.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="toggle implementors-toggle"><summary><section id="impl-Upcast%3CT%3E-for-TextureFormat" class="impl"><a href="#impl-Upcast%3CT%3E-for-TextureFormat" class="anchor">§</a><h3 class="code-header">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"><a href="#method.upcast" class="anchor">§</a><h4 class="code-header">fn <a class="fn">upcast</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.73.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.reference.html">&amp;T</a>&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-TextureFormat" class="impl"><a href="#impl-WithSubscriber-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; WithSubscriber for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_subscriber</a>&lt;S&gt;(self, subscriber: S) -&gt; WithDispatch&lt;Self&gt;<span class="where fmt-newline">where
S: <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;Dispatch&gt;,</span></h4></section></summary><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_current_subscriber</a>(self) -&gt; WithDispatch&lt;Self&gt;</h4></section></summary><div class='docblock'>Attaches the current <a href="crate::dispatcher#setting-the-default-subscriber">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Within%3CG2%3E-for-TextureFormat" class="impl"><a href="#impl-Within%3CG2%3E-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;G1, G2&gt; Within&lt;G2&gt; for G1<span class="where fmt-newline">where
G2: Contains&lt;G1&gt;,</span></h3></section></summary><div class="impl-items"><section id="method.is_within" class="method trait-impl"><a href="#method.is_within" class="anchor">§</a><h4 class="code-header">fn <a class="fn">is_within</a>(&amp;self, b: <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.reference.html">&amp;G2</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.bool.html">bool</a></h4></section></div></details><section id="impl-Resource-for-TextureFormat" class="impl"><a class="src rightside" href="../../../src/maplibre/tcs/resources.rs.html#10">source</a><a href="#impl-Resource-for-TextureFormat" class="anchor">§</a><h3 class="code-header">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
T: 'static,</span></h3></section><section id="impl-WasmNotSend-for-TextureFormat" class="impl"><a href="#impl-WasmNotSend-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; WasmNotSend for T<span class="where fmt-newline">where
T: <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</span></h3></section><section id="impl-WasmNotSync-for-TextureFormat" class="impl"><a href="#impl-WasmNotSync-for-TextureFormat" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; WasmNotSync for T<span class="where fmt-newline">where
T: <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</span></h3></section></div></section></div></main></body></html>