mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Deploying to gh-pages from @ maplibre/maplibre-rs@2109477daa 🚀
This commit is contained in:
parent
a2f4cd2559
commit
04ca1f784d
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
<!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="A render pass which allows tracking, for example using a tracing framework."><meta name="keywords" content="rust, rustlang, rust-lang, tracked_render_pass"><title>maplibre::render::resource::tracked_render_pass - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../../normalize.css"><link rel="stylesheet" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../../ayu.css" disabled><link rel="stylesheet" href="../../../../dark.css" disabled><link rel="stylesheet" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script defer src="../../../../main.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg"></head><body class="rustdoc mod"><!--[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">☰</button><a class="sidebar-logo" href="../../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module tracked_render_pass</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#structs">Structs</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../../maplibre/index.html"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../../../index.html">maplibre</a>::<wbr><a href="../../index.html">render</a>::<wbr><a href="../index.html">resource</a>::<wbr><a class="mod" href="#">tracked_render_pass</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/maplibre/render/resource/tracked_render_pass.rs.html#1-247">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A render pass which allows tracking, for example using a tracing framework.</p>
|
||||
<!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="A render pass which allows tracking, for example using a tracing framework."><meta name="keywords" content="rust, rustlang, rust-lang, tracked_render_pass"><title>maplibre::render::resource::tracked_render_pass - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../../normalize.css"><link rel="stylesheet" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../../ayu.css" disabled><link rel="stylesheet" href="../../../../dark.css" disabled><link rel="stylesheet" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script defer src="../../../../main.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg"></head><body class="rustdoc mod"><!--[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">☰</button><a class="sidebar-logo" href="../../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module tracked_render_pass</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#structs">Structs</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../../maplibre/index.html"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../../../index.html">maplibre</a>::<wbr><a href="../../index.html">render</a>::<wbr><a href="../index.html">resource</a>::<wbr><a class="mod" href="#">tracked_render_pass</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/maplibre/render/resource/tracked_render_pass.rs.html#1-228">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A render pass which allows tracking, for example using a tracing framework.</p>
|
||||
</div></details><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.TrackedRenderPass.html" title="maplibre::render::resource::tracked_render_pass::TrackedRenderPass struct">TrackedRenderPass</a></div><div class="item-right docblock-short">A [<code>RenderPass</code>], which tracks the current pipeline state to ensure all draw calls are valid.
|
||||
It is used to set the current [<code>RenderPipeline</code>], <a href="BindGroup"><code>BindGroups</code></a> and buffers.
|
||||
After all requirements are specified, draw calls can be issued.</div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -11,4 +11,4 @@ type <code>__T</code>. Returns the original <code>Rc</code>-ed trait if it isn
|
||||
<code>None</code> if it isn’t.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.downcast_mut" class="method has-srclink"><a class="srclink rightside" href="../../src/maplibre/schedule.rs.html#76">source</a><h4 class="code-header">pub fn <a href="#method.downcast_mut" class="fnname">downcast_mut</a><__T: <a class="trait" href="trait.Stage.html" title="trait maplibre::schedule::Stage">Stage</a>>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&mut </a>__T></h4></section></summary><div class="docblock"><p>Returns a mutable reference to the object within the trait object if it is of type
|
||||
<code>__T</code>, or <code>None</code> if it isn’t.</p>
|
||||
</div></details></div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-Stage-for-SystemStage" class="impl has-srclink"><a class="srclink rightside" href="../../src/maplibre/tcs/system/stage.rs.html#25-34">source</a><a href="#impl-Stage-for-SystemStage" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Stage.html" title="trait maplibre::schedule::Stage">Stage</a> for <a class="struct" href="../tcs/system/stage/struct.SystemStage.html" title="struct maplibre::tcs::system::stage::SystemStage">SystemStage</a></h3></section><section id="impl-Stage-for-NopStage" class="impl has-srclink"><a class="srclink rightside" href="../../src/maplibre/schedule.rs.html#13-15">source</a><a href="#impl-Stage-for-NopStage" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Stage.html" title="trait maplibre::schedule::Stage">Stage</a> for <a class="struct" href="struct.NopStage.html" title="struct maplibre::schedule::NopStage">NopStage</a></h3></section><section id="impl-Stage-for-Schedule" class="impl has-srclink"><a class="srclink rightside" href="../../src/maplibre/schedule.rs.html#309-313">source</a><a href="#impl-Stage-for-Schedule" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Stage.html" title="trait maplibre::schedule::Stage">Stage</a> for <a class="struct" href="struct.Schedule.html" title="struct maplibre::schedule::Schedule">Schedule</a></h3></section><section id="impl-Stage-for-MultiStage%3CI%2C%20S%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/maplibre/schedule.rs.html#56-65">source</a><a href="#impl-Stage-for-MultiStage%3CI%2C%20S%3E" class="anchor"></a><h3 class="code-header in-band">impl<const I: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.usize.html">usize</a>, S> <a class="trait" href="trait.Stage.html" title="trait maplibre::schedule::Stage">Stage</a> for <a class="struct" href="struct.MultiStage.html" title="struct maplibre::schedule::MultiStage">MultiStage</a><I, S><span class="where fmt-newline">where<br> S: <a class="trait" href="trait.Stage.html" title="trait maplibre::schedule::Stage">Stage</a>,</span></h3></section></div><script src="../../implementors/maplibre/schedule/trait.Stage.js" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
|
||||
</div></details></div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-Stage-for-SystemStage" class="impl has-srclink"><a class="srclink rightside" href="../../src/maplibre/tcs/system/stage.rs.html#25-34">source</a><a href="#impl-Stage-for-SystemStage" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Stage.html" title="trait maplibre::schedule::Stage">Stage</a> for <a class="struct" href="../tcs/system/stage/struct.SystemStage.html" title="struct maplibre::tcs::system::stage::SystemStage">SystemStage</a></h3></section><section id="impl-Stage-for-NopStage" class="impl has-srclink"><a class="srclink rightside" href="../../src/maplibre/schedule.rs.html#13-15">source</a><a href="#impl-Stage-for-NopStage" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Stage.html" title="trait maplibre::schedule::Stage">Stage</a> for <a class="struct" href="struct.NopStage.html" title="struct maplibre::schedule::NopStage">NopStage</a></h3></section><section id="impl-Stage-for-Schedule" class="impl has-srclink"><a class="srclink rightside" href="../../src/maplibre/schedule.rs.html#306-310">source</a><a href="#impl-Stage-for-Schedule" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Stage.html" title="trait maplibre::schedule::Stage">Stage</a> for <a class="struct" href="struct.Schedule.html" title="struct maplibre::schedule::Schedule">Schedule</a></h3></section><section id="impl-Stage-for-MultiStage%3CI%2C%20S%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/maplibre/schedule.rs.html#56-65">source</a><a href="#impl-Stage-for-MultiStage%3CI%2C%20S%3E" class="anchor"></a><h3 class="code-header in-band">impl<const I: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.usize.html">usize</a>, S> <a class="trait" href="trait.Stage.html" title="trait maplibre::schedule::Stage">Stage</a> for <a class="struct" href="struct.MultiStage.html" title="struct maplibre::schedule::MultiStage">MultiStage</a><I, S><span class="where fmt-newline">where<br> S: <a class="trait" href="trait.Stage.html" title="trait maplibre::schedule::Stage">Stage</a>,</span></h3></section></div><script src="../../implementors/maplibre/schedule/trait.Stage.js" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
<!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="API documentation for the Rust `QueryState` trait in crate `maplibre`."><meta name="keywords" content="rust, rustlang, rust-lang, QueryState"><title>QueryState in maplibre::tcs::tiles - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc trait"><!--[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">☰</button><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">QueryState</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><ul><li><a href="#tymethod.clone_to">clone_to</a></li><li><a href="#tymethod.create">create</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div></section><h2 class="location"><a href="index.html">In maplibre::tcs::tiles</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../maplibre/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Trait <a href="../../index.html">maplibre</a>::<wbr><a href="../index.html">tcs</a>::<wbr><a href="index.html">tiles</a>::<wbr><a class="trait" href="#">QueryState</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/maplibre/tcs/tiles.rs.html#110-113">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust trait"><code>pub trait QueryState<'s> {
|
||||
<!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="API documentation for the Rust `QueryState` trait in crate `maplibre`."><meta name="keywords" content="rust, rustlang, rust-lang, QueryState"><title>QueryState in maplibre::tcs::tiles - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc trait"><!--[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">☰</button><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">QueryState</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><ul><li><a href="#tymethod.clone_to">clone_to</a></li><li><a href="#tymethod.create">create</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div></section><h2 class="location"><a href="index.html">In maplibre::tcs::tiles</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../maplibre/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Trait <a href="../../index.html">maplibre</a>::<wbr><a href="../index.html">tcs</a>::<wbr><a href="index.html">tiles</a>::<wbr><a class="trait" href="#">QueryState</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/maplibre/tcs/tiles.rs.html#107-110">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust trait"><code>pub trait QueryState<'s> {
|
||||
fn <a href="#tymethod.create" class="fnname">create</a>(state: &'s mut <a class="struct" href="struct.GlobalQueryState.html" title="struct maplibre::tcs::tiles::GlobalQueryState">GlobalQueryState</a>) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.clone_to" class="fnname">clone_to</a><'a, S: <a class="trait" href="trait.QueryState.html" title="trait maplibre::tcs::tiles::QueryState">QueryState</a><'a>>(&'a mut self) -> S;
|
||||
}</code></pre></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.create" class="method has-srclink"><a class="srclink rightside" href="../../../src/maplibre/tcs/tiles.rs.html#111">source</a><h4 class="code-header">fn <a href="#tymethod.create" class="fnname">create</a>(state: &'s mut <a class="struct" href="struct.GlobalQueryState.html" title="struct maplibre::tcs::tiles::GlobalQueryState">GlobalQueryState</a>) -> Self</h4></div><div id="tymethod.clone_to" class="method has-srclink"><a class="srclink rightside" href="../../../src/maplibre/tcs/tiles.rs.html#112">source</a><h4 class="code-header">fn <a href="#tymethod.clone_to" class="fnname">clone_to</a><'a, S: <a class="trait" href="trait.QueryState.html" title="trait maplibre::tcs::tiles::QueryState">QueryState</a><'a>>(&'a mut self) -> S</h4></div></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-QueryState%3C%27s%3E-for-EphemeralQueryState%3C%27s%3E" class="impl has-srclink"><a class="srclink rightside" href="../../../src/maplibre/tcs/tiles.rs.html#119-127">source</a><a href="#impl-QueryState%3C%27s%3E-for-EphemeralQueryState%3C%27s%3E" class="anchor"></a><h3 class="code-header in-band">impl<'s> <a class="trait" href="trait.QueryState.html" title="trait maplibre::tcs::tiles::QueryState">QueryState</a><'s> for <a class="struct" href="struct.EphemeralQueryState.html" title="struct maplibre::tcs::tiles::EphemeralQueryState">EphemeralQueryState</a><'s></h3></section></div><script src="../../../implementors/maplibre/tcs/tiles/trait.QueryState.js" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
|
||||
}</code></pre></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.create" class="method has-srclink"><a class="srclink rightside" href="../../../src/maplibre/tcs/tiles.rs.html#108">source</a><h4 class="code-header">fn <a href="#tymethod.create" class="fnname">create</a>(state: &'s mut <a class="struct" href="struct.GlobalQueryState.html" title="struct maplibre::tcs::tiles::GlobalQueryState">GlobalQueryState</a>) -> Self</h4></div><div id="tymethod.clone_to" class="method has-srclink"><a class="srclink rightside" href="../../../src/maplibre/tcs/tiles.rs.html#109">source</a><h4 class="code-header">fn <a href="#tymethod.clone_to" class="fnname">clone_to</a><'a, S: <a class="trait" href="trait.QueryState.html" title="trait maplibre::tcs::tiles::QueryState">QueryState</a><'a>>(&'a mut self) -> S</h4></div></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-QueryState%3C%27s%3E-for-EphemeralQueryState%3C%27s%3E" class="impl has-srclink"><a class="srclink rightside" href="../../../src/maplibre/tcs/tiles.rs.html#116-124">source</a><a href="#impl-QueryState%3C%27s%3E-for-EphemeralQueryState%3C%27s%3E" class="anchor"></a><h3 class="code-header in-band">impl<'s> <a class="trait" href="trait.QueryState.html" title="trait maplibre::tcs::tiles::QueryState">QueryState</a><'s> for <a class="struct" href="struct.EphemeralQueryState.html" title="struct maplibre::tcs::tiles::EphemeralQueryState">EphemeralQueryState</a><'s></h3></section></div><script src="../../../implementors/maplibre/tcs/tiles/trait.QueryState.js" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,3 +1,3 @@
|
||||
<!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="A ring-buffer like pool of buffers."><meta name="keywords" content="rust, rustlang, rust-lang, buffer_pool"><title>maplibre::vector::resource::buffer_pool - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../../normalize.css"><link rel="stylesheet" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../../ayu.css" disabled><link rel="stylesheet" href="../../../../dark.css" disabled><link rel="stylesheet" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script defer src="../../../../main.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg"></head><body class="rustdoc mod"><!--[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">☰</button><a class="sidebar-logo" href="../../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module buffer_pool</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../../maplibre/index.html"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../../../index.html">maplibre</a>::<wbr><a href="../../index.html">vector</a>::<wbr><a href="../index.html">resource</a>::<wbr><a class="mod" href="#">buffer_pool</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/maplibre/vector/resource/buffer_pool.rs.html#1-724">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A ring-buffer like pool of <a href="wgpu::Buffer">buffers</a>.</p>
|
||||
<!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="A ring-buffer like pool of buffers."><meta name="keywords" content="rust, rustlang, rust-lang, buffer_pool"><title>maplibre::vector::resource::buffer_pool - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../../normalize.css"><link rel="stylesheet" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../../ayu.css" disabled><link rel="stylesheet" href="../../../../dark.css" disabled><link rel="stylesheet" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script defer src="../../../../main.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg"></head><body class="rustdoc mod"><!--[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">☰</button><a class="sidebar-logo" href="../../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module buffer_pool</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../../maplibre/index.html"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../../../index.html">maplibre</a>::<wbr><a href="../../index.html">vector</a>::<wbr><a href="../index.html">resource</a>::<wbr><a class="mod" href="#">buffer_pool</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/maplibre/vector/resource/buffer_pool.rs.html#1-721">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A ring-buffer like pool of <a href="wgpu::Buffer">buffers</a>.</p>
|
||||
</div></details><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BackingBuffer.html" title="maplibre::vector::resource::buffer_pool::BackingBuffer struct">BackingBuffer</a><span title="Restricted Visibility"> 🔒</span> </div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BufferPool.html" title="maplibre::vector::resource::buffer_pool::BufferPool struct">BufferPool</a></div><div class="item-right docblock-short">This is inspired by the memory pool in Vulkan documented
|
||||
<a href="https://gpuopen-librariesandsdks.github.io/VulkanMemoryAllocator/html/custom_memory_pools.html">here</a>.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.IndexEntry.html" title="maplibre::vector::resource::buffer_pool::IndexEntry struct">IndexEntry</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.RingIndex.html" title="maplibre::vector::resource::buffer_pool::RingIndex struct">RingIndex</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.RingIndexEntry.html" title="maplibre::vector::resource::buffer_pool::RingIndexEntry struct">RingIndexEntry</a></div></div></div><h2 id="enums" class="small-section-header"><a href="#enums">Enums</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.BackingBufferType.html" title="maplibre::vector::resource::buffer_pool::BackingBufferType enum">BackingBufferType</a></div></div></div><h2 id="constants" class="small-section-header"><a href="#constants">Constants</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.FEATURE_METADATA_SIZE.html" title="maplibre::vector::resource::buffer_pool::FEATURE_METADATA_SIZE constant">FEATURE_METADATA_SIZE</a></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.INDICES_SIZE.html" title="maplibre::vector::resource::buffer_pool::INDICES_SIZE constant">INDICES_SIZE</a></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.LAYER_METADATA_SIZE.html" title="maplibre::vector::resource::buffer_pool::LAYER_METADATA_SIZE constant">LAYER_METADATA_SIZE</a></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.VERTEX_SIZE.html" title="maplibre::vector::resource::buffer_pool::VERTEX_SIZE constant">VERTEX_SIZE</a></div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -844,7 +844,7 @@
|
||||
<span class="kw">let </span>ZoomLevel(level) = key[<span class="number">0</span>];
|
||||
<span class="kw">let </span>len = level <span class="kw">as </span>usize;
|
||||
<span class="kw">for </span>part <span class="kw">in </span><span class="kw-2">&</span><span class="self">self</span>.<span class="number">0</span>[<span class="number">0</span>..len] {
|
||||
<span class="macro">write!</span>(f, <span class="string">"{:?}"</span>, part)<span class="question-mark">?</span>;
|
||||
<span class="macro">write!</span>(f, <span class="string">"{part:?}"</span>)<span class="question-mark">?</span>;
|
||||
}
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
}
|
||||
@ -1482,7 +1482,7 @@
|
||||
<span class="kw">let </span>tile = WorldTileCoords::from(tile);
|
||||
<span class="kw">let </span>p1 = tile.transform_for_zoom(zoom) * TOP_LEFT;
|
||||
<span class="kw">let </span>p2 = tile.transform_for_zoom(zoom) * BOTTOM_RIGHT;
|
||||
<span class="macro">println!</span>(<span class="string">"{:?}\n{:?}"</span>, p1, p2);
|
||||
<span class="macro">println!</span>(<span class="string">"{p1:?}\n{p2:?}"</span>);
|
||||
|
||||
<span class="macro">assert_eq!</span>(
|
||||
WorldCoords::from((p1.x, p1.y)).into_world_tile(zoom.level(), zoom),
|
||||
@ -1556,7 +1556,7 @@
|
||||
)
|
||||
.iter()
|
||||
{
|
||||
<span class="macro">println!</span>(<span class="string">"{}"</span>, tile_coords);
|
||||
<span class="macro">println!</span>(<span class="string">"{tile_coords}"</span>);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -518,8 +518,8 @@
|
||||
<span class="comment">// TODO: (optimize) Using while instead of if means that we are processing all that is
|
||||
// TODO: available this might cause frame drops.
|
||||
</span><span class="kw">while let </span><span class="prelude-val">Ok</span>(message) = <span class="self">self</span>.channel.<span class="number">1</span>.try_recv() {
|
||||
<span class="macro">tracing::debug!</span>(<span class="string">"Data reached main thread: {:?}"</span>, <span class="kw-2">&</span>message);
|
||||
<span class="macro">log::debug!</span>(<span class="string">"Data reached main thread: {:?}"</span>, <span class="kw-2">&</span>message);
|
||||
<span class="macro">tracing::debug!</span>(<span class="string">"Data reached main thread: {message:?}"</span>);
|
||||
<span class="macro">log::debug!</span>(<span class="string">"Data reached main thread: {message:?}"</span>);
|
||||
|
||||
<span class="kw">if </span>filter(<span class="kw-2">&</span>message) {
|
||||
ret.push(message);
|
||||
|
||||
@ -72,7 +72,7 @@
|
||||
.thread_name_fn(|| {
|
||||
<span class="kw">static </span>ATOMIC_ID: AtomicUsize = AtomicUsize::new(<span class="number">0</span>);
|
||||
<span class="kw">let </span>id = ATOMIC_ID.fetch_add(<span class="number">1</span>, Ordering::SeqCst);
|
||||
<span class="macro">format!</span>(<span class="string">"maplibre-rs-pool-{}"</span>, id)
|
||||
<span class="macro">format!</span>(<span class="string">"maplibre-rs-pool-{id}"</span>)
|
||||
})
|
||||
.on_thread_start(|| {
|
||||
<span class="attribute">#[cfg(feature = <span class="string">"trace"</span>)]
|
||||
|
||||
@ -232,8 +232,8 @@
|
||||
.unwrap()
|
||||
.insert(RasterLayersDataComponent::default());
|
||||
|
||||
<span class="macro">tracing::event!</span>(tracing::Level::ERROR, %coords, <span class="string">"tile request started: {}"</span>, <span class="kw-2">&</span>coords);
|
||||
<span class="macro">log::info!</span>(<span class="string">"tile request started: {}"</span>, <span class="kw-2">&</span>coords);
|
||||
<span class="macro">tracing::event!</span>(tracing::Level::ERROR, %coords, <span class="string">"tile request started: {coords}"</span>);
|
||||
<span class="macro">log::info!</span>(<span class="string">"tile request started: {coords}"</span>);
|
||||
|
||||
<span class="self">self</span>.kernel
|
||||
.apc()
|
||||
@ -300,7 +300,7 @@
|
||||
.map_err(|e| ProcedureError::Execution(Box::new(e)))<span class="question-mark">?</span>;
|
||||
}
|
||||
<span class="prelude-val">Err</span>(e) => {
|
||||
<span class="macro">log::error!</span>(<span class="string">"{:?}"</span>, <span class="kw-2">&</span>e);
|
||||
<span class="macro">log::error!</span>(<span class="string">"{e:?}"</span>);
|
||||
|
||||
context
|
||||
.send(<T <span class="kw">as </span>RasterTransferables>::LayerRasterMissing::build_from(
|
||||
|
||||
@ -986,13 +986,13 @@
|
||||
<span class="kw">let </span>origin_clip_space = view_proj.project(Vector4::new(<span class="number">0.0</span>, <span class="number">0.0</span>, <span class="number">0.0</span>, <span class="number">1.0</span>));
|
||||
<span class="macro">println!</span>(<span class="string">"origin w in clip space: {:?}"</span>, origin_clip_space.w);
|
||||
|
||||
<span class="macro">println!</span>(<span class="string">"world_pos: {:?}"</span>, world_pos);
|
||||
<span class="macro">println!</span>(<span class="string">"clip: {:?}"</span>, clip);
|
||||
<span class="macro">println!</span>(<span class="string">"world_pos: {world_pos:?}"</span>);
|
||||
<span class="macro">println!</span>(<span class="string">"clip: {clip:?}"</span>);
|
||||
<span class="macro">println!</span>(<span class="string">"world_pos: {:?}"</span>, view_proj.invert().project(clip));
|
||||
|
||||
<span class="macro">println!</span>(<span class="string">"window: {:?}"</span>, camera.clip_to_window_vulkan(<span class="kw-2">&</span>clip));
|
||||
<span class="kw">let </span>window = camera.clip_to_window(<span class="kw-2">&</span>clip);
|
||||
<span class="macro">println!</span>(<span class="string">"window (matrix): {:?}"</span>, window);
|
||||
<span class="macro">println!</span>(<span class="string">"window (matrix): {window:?}"</span>);
|
||||
|
||||
<span class="comment">// --------- nalgebra
|
||||
|
||||
@ -1024,9 +1024,9 @@
|
||||
|
||||
<span class="comment">// for z = 0 in world coordinates
|
||||
</span><span class="kw">let </span>u = -near_world.z / (far_world.z - near_world.z);
|
||||
<span class="macro">println!</span>(<span class="string">"u: {:?}"</span>, u);
|
||||
<span class="macro">println!</span>(<span class="string">"u: {u:?}"</span>);
|
||||
<span class="kw">let </span>unprojected = near_world + u * (far_world - near_world);
|
||||
<span class="macro">println!</span>(<span class="string">"unprojected: {:?}"</span>, unprojected);
|
||||
<span class="macro">println!</span>(<span class="string">"unprojected: {unprojected:?}"</span>);
|
||||
<span class="macro">assert!</span>(Vector3::new(world_pos.x, world_pos.y, world_pos.z).abs_diff_eq(<span class="kw-2">&</span>unprojected, <span class="number">0.05</span>));
|
||||
|
||||
<span class="comment">// ---- test for unproject
|
||||
@ -1042,9 +1042,9 @@
|
||||
|
||||
<span class="comment">// for z = 0 in world coordinates
|
||||
</span><span class="kw">let </span>u = -near_world.z / (far_world.z - near_world.z);
|
||||
<span class="macro">println!</span>(<span class="string">"u: {:?}"</span>, u);
|
||||
<span class="macro">println!</span>(<span class="string">"u: {u:?}"</span>);
|
||||
<span class="kw">let </span>unprojected = near_world + u * (far_world - near_world);
|
||||
<span class="macro">println!</span>(<span class="string">"unprojected: {:?}"</span>, unprojected);
|
||||
<span class="macro">println!</span>(<span class="string">"unprojected: {unprojected:?}"</span>);
|
||||
<span class="comment">// ----
|
||||
|
||||
//assert!(reverse_world.abs_diff_eq(&world_pos, 0.05))
|
||||
|
||||
@ -144,7 +144,7 @@
|
||||
<span class="kw">pub fn </span>expect_initialized_mut(<span class="kw-2">&mut </span><span class="self">self</span>, message: <span class="kw-2">&</span>str) -> <span class="kw-2">&mut </span>T {
|
||||
<span class="kw">match </span><span class="self">self </span>{
|
||||
Eventually::Initialized(value) => value,
|
||||
Eventually::Uninitialized => <span class="macro">panic!</span>(<span class="string">"{}"</span>, message),
|
||||
Eventually::Uninitialized => <span class="macro">panic!</span>(<span class="string">"{message}"</span>),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1367,10 +1367,10 @@
|
||||
<span class="kw">pub fn </span>new(inputs: usize, outputs: usize) -> <span class="self">Self </span>{
|
||||
TestNode {
|
||||
inputs: (<span class="number">0</span>..inputs)
|
||||
.map(|i| SlotInfo::new(<span class="macro">format!</span>(<span class="string">"in_{}"</span>, i), SlotType::TextureView))
|
||||
.map(|i| SlotInfo::new(<span class="macro">format!</span>(<span class="string">"in_{i}"</span>), SlotType::TextureView))
|
||||
.collect(),
|
||||
outputs: (<span class="number">0</span>..outputs)
|
||||
.map(|i| SlotInfo::new(<span class="macro">format!</span>(<span class="string">"out_{}"</span>, i), SlotType::TextureView))
|
||||
.map(|i| SlotInfo::new(<span class="macro">format!</span>(<span class="string">"out_{i}"</span>), SlotType::TextureView))
|
||||
.collect(),
|
||||
}
|
||||
}
|
||||
|
||||
@ -552,16 +552,16 @@
|
||||
<span class="kw">let </span>size = window.size();
|
||||
|
||||
<span class="kw">let </span>capabilities = surface.get_capabilities(adapter);
|
||||
<span class="macro">log::info!</span>(<span class="string">"adapter capabilities on surface: {:?}"</span>, capabilities);
|
||||
<span class="macro">log::info!</span>(<span class="string">"adapter capabilities on surface: {capabilities:?}"</span>);
|
||||
|
||||
<span class="kw">let </span>texture_format = settings
|
||||
.texture_format
|
||||
.or_else(|| capabilities.formats.first().cloned())
|
||||
.unwrap_or(wgpu::TextureFormat::Rgba8Unorm);
|
||||
<span class="macro">log::info!</span>(<span class="string">"format description: {:?}"</span>, texture_format);
|
||||
<span class="macro">log::info!</span>(<span class="string">"format description: {texture_format:?}"</span>);
|
||||
|
||||
<span class="kw">let </span>texture_format_features = adapter.get_texture_format_features(texture_format);
|
||||
<span class="macro">log::info!</span>(<span class="string">"format features: {:?}"</span>, texture_format_features);
|
||||
<span class="macro">log::info!</span>(<span class="string">"format features: {texture_format_features:?}"</span>);
|
||||
|
||||
<span class="self">Self </span>{
|
||||
size,
|
||||
|
||||
@ -226,25 +226,6 @@
|
||||
<span id="226">226</span>
|
||||
<span id="227">227</span>
|
||||
<span id="228">228</span>
|
||||
<span id="229">229</span>
|
||||
<span id="230">230</span>
|
||||
<span id="231">231</span>
|
||||
<span id="232">232</span>
|
||||
<span id="233">233</span>
|
||||
<span id="234">234</span>
|
||||
<span id="235">235</span>
|
||||
<span id="236">236</span>
|
||||
<span id="237">237</span>
|
||||
<span id="238">238</span>
|
||||
<span id="239">239</span>
|
||||
<span id="240">240</span>
|
||||
<span id="241">241</span>
|
||||
<span id="242">242</span>
|
||||
<span id="243">243</span>
|
||||
<span id="244">244</span>
|
||||
<span id="245">245</span>
|
||||
<span id="246">246</span>
|
||||
<span id="247">247</span>
|
||||
</pre><pre class="rust"><code><span class="doccomment">//! A render pass which allows tracking, for example using a tracing framework.
|
||||
|
||||
</span><span class="kw">use </span>std::ops::Range;
|
||||
@ -268,7 +249,7 @@
|
||||
///
|
||||
/// Subsequent draw calls will exhibit the behavior defined by the `pipeline`.
|
||||
</span><span class="kw">pub fn </span>set_render_pipeline(<span class="kw-2">&mut </span><span class="self">self</span>, pipeline: <span class="kw-2">&</span><span class="lifetime">'a </span>wgpu::RenderPipeline) {
|
||||
<span class="macro">trace!</span>(<span class="string">"set pipeline: {:?}"</span>, pipeline);
|
||||
<span class="macro">trace!</span>(<span class="string">"set pipeline: {pipeline:?}"</span>);
|
||||
<span class="self">self</span>.pass.set_pipeline(pipeline);
|
||||
}
|
||||
|
||||
@ -311,7 +292,7 @@
|
||||
///
|
||||
/// The active vertex buffer(s) can be set with [`TrackedRenderPass::set_vertex_buffer`].
|
||||
</span><span class="kw">pub fn </span>draw(<span class="kw-2">&mut </span><span class="self">self</span>, vertices: Range<u32>, instances: Range<u32>) {
|
||||
<span class="macro">trace!</span>(<span class="string">"draw: {:?} {:?}"</span>, vertices, instances);
|
||||
<span class="macro">trace!</span>(<span class="string">"draw: {vertices:?} {instances:?}"</span>);
|
||||
<span class="self">self</span>.pass.draw(vertices, instances);
|
||||
}
|
||||
|
||||
@ -320,12 +301,7 @@
|
||||
/// The active index buffer can be set with [`TrackedRenderPass::set_index_buffer`], while the
|
||||
/// active vertex buffer(s) can be set with [`TrackedRenderPass::set_vertex_buffer`].
|
||||
</span><span class="kw">pub fn </span>draw_indexed(<span class="kw-2">&mut </span><span class="self">self</span>, indices: Range<u32>, base_vertex: i32, instances: Range<u32>) {
|
||||
<span class="macro">trace!</span>(
|
||||
<span class="string">"draw indexed: {:?} {} {:?}"</span>,
|
||||
indices,
|
||||
base_vertex,
|
||||
instances
|
||||
);
|
||||
<span class="macro">trace!</span>(<span class="string">"draw indexed: {indices:?} {base_vertex} {instances:?}"</span>);
|
||||
<span class="self">self</span>.pass.draw_indexed(indices, base_vertex, instances);
|
||||
}
|
||||
|
||||
@ -346,7 +322,7 @@
|
||||
/// }
|
||||
/// ```
|
||||
</span><span class="kw">pub fn </span>draw_indirect(<span class="kw-2">&mut </span><span class="self">self</span>, indirect_buffer: <span class="kw-2">&</span><span class="lifetime">'a </span>wgpu::Buffer, indirect_offset: u64) {
|
||||
<span class="macro">trace!</span>(<span class="string">"draw indirect: {:?} {}"</span>, indirect_buffer, indirect_offset);
|
||||
<span class="macro">trace!</span>(<span class="string">"draw indirect: {indirect_buffer:?} {indirect_offset}"</span>);
|
||||
<span class="self">self</span>.pass.draw_indirect(indirect_buffer, indirect_offset);
|
||||
}
|
||||
|
||||
@ -374,11 +350,7 @@
|
||||
indirect_buffer: <span class="kw-2">&</span><span class="lifetime">'a </span>wgpu::Buffer,
|
||||
indirect_offset: u64,
|
||||
) {
|
||||
<span class="macro">trace!</span>(
|
||||
<span class="string">"draw indexed indirect: {:?} {}"</span>,
|
||||
indirect_buffer,
|
||||
indirect_offset
|
||||
);
|
||||
<span class="macro">trace!</span>(<span class="string">"draw indexed indirect: {indirect_buffer:?} {indirect_offset}"</span>);
|
||||
<span class="self">self</span>.pass
|
||||
.draw_indexed_indirect(indirect_buffer, indirect_offset);
|
||||
}
|
||||
@ -387,7 +359,7 @@
|
||||
///
|
||||
/// Subsequent stencil tests will test against this value.
|
||||
</span><span class="kw">pub fn </span>set_stencil_reference(<span class="kw-2">&mut </span><span class="self">self</span>, reference: u32) {
|
||||
<span class="macro">trace!</span>(<span class="string">"set stencil reference: {}"</span>, reference);
|
||||
<span class="macro">trace!</span>(<span class="string">"set stencil reference: {reference}"</span>);
|
||||
<span class="self">self</span>.pass.set_stencil_reference(reference);
|
||||
}
|
||||
|
||||
@ -395,7 +367,7 @@
|
||||
///
|
||||
/// Subsequent draw calls will discard any fragments that fall outside this region.
|
||||
</span><span class="kw">pub fn </span>set_scissor_rect(<span class="kw-2">&mut </span><span class="self">self</span>, x: u32, y: u32, width: u32, height: u32) {
|
||||
<span class="macro">trace!</span>(<span class="string">"set_scissor_rect: {} {} {} {}"</span>, x, y, width, height);
|
||||
<span class="macro">trace!</span>(<span class="string">"set_scissor_rect: {x} {y} {width} {height}"</span>);
|
||||
<span class="self">self</span>.pass.set_scissor_rect(x, y, width, height);
|
||||
}
|
||||
|
||||
@ -404,9 +376,7 @@
|
||||
/// `Features::PUSH_CONSTANTS` must be enabled on the device in order to call these functions.
|
||||
</span><span class="kw">pub fn </span>set_push_constants(<span class="kw-2">&mut </span><span class="self">self</span>, stages: wgpu::ShaderStages, offset: u32, data: <span class="kw-2">&</span>[u8]) {
|
||||
<span class="macro">trace!</span>(
|
||||
<span class="string">"set push constants: {:?} offset: {} data.len: {}"</span>,
|
||||
stages,
|
||||
offset,
|
||||
<span class="string">"set push constants: {stages:?} offset: {offset} data.len: {}"</span>,
|
||||
data.len()
|
||||
);
|
||||
<span class="self">self</span>.pass.set_push_constants(stages, offset, data);
|
||||
@ -424,15 +394,7 @@
|
||||
min_depth: f32,
|
||||
max_depth: f32,
|
||||
) {
|
||||
<span class="macro">trace!</span>(
|
||||
<span class="string">"set viewport: {} {} {} {} {} {}"</span>,
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
min_depth,
|
||||
max_depth
|
||||
);
|
||||
<span class="macro">trace!</span>(<span class="string">"set viewport: {x} {y} {width} {height} {min_depth} {max_depth}"</span>);
|
||||
<span class="self">self</span>.pass
|
||||
.set_viewport(x, y, width, height, min_depth, max_depth);
|
||||
}
|
||||
@ -441,7 +403,7 @@
|
||||
///
|
||||
/// This is a GPU debugging feature. This has no effect on the rendering itself.
|
||||
</span><span class="kw">pub fn </span>insert_debug_marker(<span class="kw-2">&mut </span><span class="self">self</span>, label: <span class="kw-2">&</span>str) {
|
||||
<span class="macro">trace!</span>(<span class="string">"insert debug marker: {}"</span>, label);
|
||||
<span class="macro">trace!</span>(<span class="string">"insert debug marker: {label}"</span>);
|
||||
<span class="self">self</span>.pass.insert_debug_marker(label);
|
||||
}
|
||||
|
||||
@ -466,7 +428,7 @@
|
||||
/// [`push_debug_group`]: TrackedRenderPass::push_debug_group
|
||||
/// [`pop_debug_group`]: TrackedRenderPass::pop_debug_group
|
||||
</span><span class="kw">pub fn </span>push_debug_group(<span class="kw-2">&mut </span><span class="self">self</span>, label: <span class="kw-2">&</span>str) {
|
||||
<span class="macro">trace!</span>(<span class="string">"push_debug_group marker: {}"</span>, label);
|
||||
<span class="macro">trace!</span>(<span class="string">"push_debug_group marker: {label}"</span>);
|
||||
<span class="self">self</span>.pass.push_debug_group(label);
|
||||
}
|
||||
|
||||
@ -488,7 +450,7 @@
|
||||
}
|
||||
|
||||
<span class="kw">pub fn </span>set_blend_constant(<span class="kw-2">&mut </span><span class="self">self</span>, color: wgpu::Color) {
|
||||
<span class="macro">trace!</span>(<span class="string">"set blend constant: {:?}"</span>, color);
|
||||
<span class="macro">trace!</span>(<span class="string">"set blend constant: {color:?}"</span>);
|
||||
<span class="self">self</span>.pass.set_blend_constant(color);
|
||||
}
|
||||
}
|
||||
|
||||
@ -115,7 +115,7 @@
|
||||
{
|
||||
<span class="kw">let </span><span class="kw-2">mut </span>src: <span class="kw-2">&</span><span class="kw">dyn </span>Error = <span class="kw-2">&</span>e;
|
||||
<span class="kw">loop </span>{
|
||||
<span class="macro">error!</span>(<span class="string">"> {}"</span>, src);
|
||||
<span class="macro">error!</span>(<span class="string">"> {src}"</span>);
|
||||
<span class="kw">match </span>src.source() {
|
||||
<span class="prelude-val">Some</span>(s) => src = s,
|
||||
<span class="prelude-val">None </span>=> <span class="kw">break</span>,
|
||||
@ -125,7 +125,7 @@
|
||||
|
||||
<span class="comment">// TODO: Replace panic with a graceful exit in the event loop
|
||||
// if e.should_exit() { *control_flow = ControlFlow::Exit; }
|
||||
</span><span class="macro">panic!</span>(<span class="string">"Error running render graph: {:?}"</span>, e);
|
||||
</span><span class="macro">panic!</span>(<span class="string">"Error running render graph: {e:?}"</span>);
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
@ -308,9 +308,6 @@
|
||||
<span id="308">308</span>
|
||||
<span id="309">309</span>
|
||||
<span id="310">310</span>
|
||||
<span id="311">311</span>
|
||||
<span id="312">312</span>
|
||||
<span id="313">313</span>
|
||||
</pre><pre class="rust"><code><span class="kw">use </span>std::collections::HashMap;
|
||||
|
||||
<span class="kw">use </span>downcast_rs::{impl_downcast, Downcast};
|
||||
@ -415,7 +412,7 @@
|
||||
<span class="kw">let </span>label: Box<<span class="kw">dyn </span>StageLabel> = Box::new(label);
|
||||
<span class="self">self</span>.stage_order.push(label.clone());
|
||||
<span class="kw">let </span>prev = <span class="self">self</span>.stages.insert(label.clone(), Box::new(stage));
|
||||
<span class="macro">assert!</span>(prev.is_none(), <span class="string">"Stage already exists: {:?}."</span>, label);
|
||||
<span class="macro">assert!</span>(prev.is_none(), <span class="string">"Stage already exists: {label:?}."</span>);
|
||||
<span class="self">self
|
||||
</span>}
|
||||
|
||||
@ -451,11 +448,11 @@
|
||||
.enumerate()
|
||||
.find(|(_i, stage_label)| <span class="kw-2">&***</span>stage_label == target)
|
||||
.map(|(i, <span class="kw">_</span>)| i)
|
||||
.unwrap_or_else(|| <span class="macro">panic!</span>(<span class="string">"Target stage does not exist: {:?}."</span>, target));
|
||||
.unwrap_or_else(|| <span class="macro">panic!</span>(<span class="string">"Target stage does not exist: {target:?}."</span>));
|
||||
|
||||
<span class="self">self</span>.stage_order.insert(target_index + <span class="number">1</span>, label.clone());
|
||||
<span class="kw">let </span>prev = <span class="self">self</span>.stages.insert(label.clone(), Box::new(stage));
|
||||
<span class="macro">assert!</span>(prev.is_none(), <span class="string">"Stage already exists: {:?}."</span>, label);
|
||||
<span class="macro">assert!</span>(prev.is_none(), <span class="string">"Stage already exists: {label:?}."</span>);
|
||||
<span class="self">self
|
||||
</span>}
|
||||
|
||||
@ -485,11 +482,11 @@
|
||||
.enumerate()
|
||||
.find(|(_i, stage_label)| <span class="kw-2">&***</span>stage_label == target)
|
||||
.map(|(i, <span class="kw">_</span>)| i)
|
||||
.unwrap_or_else(|| <span class="macro">panic!</span>(<span class="string">"Target stage does not exist: {:?}."</span>, target));
|
||||
.unwrap_or_else(|| <span class="macro">panic!</span>(<span class="string">"Target stage does not exist: {target:?}."</span>));
|
||||
|
||||
<span class="self">self</span>.stage_order.insert(target_index, label.clone());
|
||||
<span class="kw">let </span>prev = <span class="self">self</span>.stages.insert(label.clone(), Box::new(stage));
|
||||
<span class="macro">assert!</span>(prev.is_none(), <span class="string">"Stage already exists: {:?}."</span>, label);
|
||||
<span class="macro">assert!</span>(prev.is_none(), <span class="string">"Stage already exists: {label:?}."</span>);
|
||||
<span class="self">self
|
||||
</span>}
|
||||
|
||||
@ -523,7 +520,7 @@
|
||||
func: F,
|
||||
) -> <span class="kw-2">&mut </span><span class="self">Self </span>{
|
||||
<span class="kw">let </span>stage = <span class="self">self</span>.get_stage_mut::<T>(<span class="kw-2">&</span>label).unwrap_or_else(<span class="kw">move </span>|| {
|
||||
<span class="macro">panic!</span>(<span class="string">"stage '{:?}' does not exist or is the wrong type"</span>, label)
|
||||
<span class="macro">panic!</span>(<span class="string">"stage '{label:?}' does not exist or is the wrong type"</span>)
|
||||
});
|
||||
func(stage);
|
||||
<span class="self">self
|
||||
@ -609,10 +606,7 @@
|
||||
<span class="kw">let </span>stage = <span class="self">self
|
||||
</span>.get_stage_mut::<SystemStage>(<span class="kw-2">&</span>stage_label)
|
||||
.unwrap_or_else(<span class="kw">move </span>|| {
|
||||
<span class="macro">panic!</span>(
|
||||
<span class="string">"Stage '{:?}' does not exist or is not a SystemStage"</span>,
|
||||
stage_label
|
||||
)
|
||||
<span class="macro">panic!</span>(<span class="string">"Stage '{stage_label:?}' does not exist or is not a SystemStage"</span>)
|
||||
});
|
||||
stage.add_system(system);
|
||||
<span class="self">self
|
||||
|
||||
@ -324,9 +324,6 @@
|
||||
<span id="324">324</span>
|
||||
<span id="325">325</span>
|
||||
<span id="326">326</span>
|
||||
<span id="327">327</span>
|
||||
<span id="328">328</span>
|
||||
<span id="329">329</span>
|
||||
</pre><pre class="rust"><code><span class="kw">use </span>std::{
|
||||
any,
|
||||
any::TypeId,
|
||||
@ -417,10 +414,7 @@
|
||||
<span class="kw">if let </span><span class="prelude-val">Some</span>(entry) = coords.build_quad_key().map(|key| components.entry(key)) {
|
||||
<span class="kw">match </span>entry {
|
||||
btree_map::Entry::Vacant(_entry) => {
|
||||
<span class="macro">panic!</span>(
|
||||
<span class="string">"Can not add a component at {}. Entity does not exist."</span>,
|
||||
coords
|
||||
)
|
||||
<span class="macro">panic!</span>(<span class="string">"Can not add a component at {coords}. Entity does not exist."</span>,)
|
||||
}
|
||||
btree_map::Entry::Occupied(<span class="kw-2">mut </span>entry) => {
|
||||
entry.get_mut().push(UnsafeCell::new(Box::new(component)));
|
||||
|
||||
@ -194,17 +194,6 @@
|
||||
<span id="194">194</span>
|
||||
<span id="195">195</span>
|
||||
<span id="196">196</span>
|
||||
<span id="197">197</span>
|
||||
<span id="198">198</span>
|
||||
<span id="199">199</span>
|
||||
<span id="200">200</span>
|
||||
<span id="201">201</span>
|
||||
<span id="202">202</span>
|
||||
<span id="203">203</span>
|
||||
<span id="204">204</span>
|
||||
<span id="205">205</span>
|
||||
<span id="206">206</span>
|
||||
<span id="207">207</span>
|
||||
</pre><pre class="rust"><code><span class="kw">use </span>std::{collections::HashSet, marker::PhantomData};
|
||||
|
||||
<span class="kw">use </span>geozero::{
|
||||
@ -266,12 +255,7 @@
|
||||
<span class="kw">if let </span><span class="prelude-val">Err</span>(e) = layer.process(<span class="kw-2">&mut </span>tessellator) {
|
||||
context.layer_missing(coords, layer_name)<span class="question-mark">?</span>;
|
||||
|
||||
<span class="macro">tracing::error!</span>(
|
||||
<span class="string">"layer {} at {} tesselation failed {:?}"</span>,
|
||||
layer_name,
|
||||
<span class="kw-2">&</span>coords,
|
||||
e
|
||||
);
|
||||
<span class="macro">tracing::error!</span>(<span class="string">"layer {layer_name} at {coords} tesselation failed {e:?}"</span>);
|
||||
} <span class="kw">else </span>{
|
||||
context.layer_tesselation_finished(
|
||||
coords,
|
||||
@ -294,12 +278,7 @@
|
||||
|
||||
<span class="kw">for </span>missing_layer <span class="kw">in </span>tile_request.layers.difference(<span class="kw-2">&</span>available_layers) {
|
||||
context.layer_missing(coords, missing_layer)<span class="question-mark">?</span>;
|
||||
|
||||
<span class="macro">tracing::info!</span>(
|
||||
<span class="string">"requested layer {} at {} not found in tile"</span>,
|
||||
missing_layer,
|
||||
<span class="kw-2">&</span>coords
|
||||
);
|
||||
<span class="macro">tracing::info!</span>(<span class="string">"requested layer {missing_layer} at {coords} not found in tile"</span>);
|
||||
}
|
||||
|
||||
<span class="comment">// Indexing
|
||||
@ -314,8 +293,7 @@
|
||||
|
||||
<span class="comment">// End
|
||||
|
||||
</span><span class="macro">tracing::info!</span>(<span class="string">"tile tessellated at {} finished"</span>, <span class="kw-2">&</span>coords);
|
||||
|
||||
</span><span class="macro">tracing::info!</span>(<span class="string">"tile tessellated at {coords} finished"</span>);
|
||||
context.tile_finished(coords)<span class="question-mark">?</span>;
|
||||
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
|
||||
@ -159,7 +159,7 @@
|
||||
<span class="macro">tracing::trace!</span>(
|
||||
<span class="string">"Drawing layer {:?} at {}"</span>,
|
||||
entry.style_layer.source_layer,
|
||||
<span class="kw-2">&</span>entry.coords
|
||||
entry.coords
|
||||
);
|
||||
|
||||
<span class="kw">let </span>index_range = entry.indices_buffer_range();
|
||||
|
||||
@ -242,8 +242,8 @@
|
||||
.unwrap()
|
||||
.insert(VectorLayersDataComponent::default());
|
||||
|
||||
<span class="macro">tracing::event!</span>(tracing::Level::ERROR, %coords, <span class="string">"tile request started: {}"</span>, <span class="kw-2">&</span>coords);
|
||||
<span class="macro">log::info!</span>(<span class="string">"tile request started: {}"</span>, <span class="kw-2">&</span>coords);
|
||||
<span class="macro">tracing::event!</span>(tracing::Level::ERROR, %coords, <span class="string">"tile request started: {coords}"</span>);
|
||||
<span class="macro">log::info!</span>(<span class="string">"tile request started: {coords}"</span>);
|
||||
|
||||
<span class="self">self</span>.kernel
|
||||
.apc()
|
||||
@ -318,7 +318,7 @@
|
||||
.map_err(|e| ProcedureError::Execution(Box::new(e)))<span class="question-mark">?</span>;
|
||||
}
|
||||
<span class="prelude-val">Err</span>(e) => {
|
||||
<span class="macro">log::error!</span>(<span class="string">"{:?}"</span>, <span class="kw-2">&</span>e);
|
||||
<span class="macro">log::error!</span>(<span class="string">"{e:?}"</span>);
|
||||
<span class="kw">for </span>to_load <span class="kw">in </span><span class="kw-2">&</span>fill_layers {
|
||||
context
|
||||
.send(<T <span class="kw">as </span>VectorTransferables>::LayerMissing::build_from(
|
||||
|
||||
@ -719,9 +719,6 @@
|
||||
<span id="719">719</span>
|
||||
<span id="720">720</span>
|
||||
<span id="721">721</span>
|
||||
<span id="722">722</span>
|
||||
<span id="723">723</span>
|
||||
<span id="724">724</span>
|
||||
</pre><pre class="rust"><code><span class="doccomment">//! A ring-buffer like pool of [buffers](wgpu::Buffer).
|
||||
|
||||
</span><span class="kw">use </span>std::{
|
||||
@ -1231,10 +1228,7 @@
|
||||
inner_size: wgpu::BufferAddress,
|
||||
) -> Range<wgpu::BufferAddress> {
|
||||
<span class="kw">if </span>new_data > inner_size {
|
||||
<span class="macro">panic!</span>(
|
||||
<span class="string">"can not allocate because backing buffer {:?} are too small"</span>,
|
||||
typ
|
||||
)
|
||||
<span class="macro">panic!</span>(<span class="string">"can not allocate because backing buffer {typ:?} are too small"</span>)
|
||||
}
|
||||
|
||||
<span class="kw">let </span><span class="kw-2">mut </span>available_gap = <span class="self">self</span>.find_largest_gap(typ, inner_size);
|
||||
@ -1398,7 +1392,7 @@
|
||||
<span class="number">128 </span>- <span class="number">2 </span>* <span class="number">48 </span>- <span class="number">24</span>,
|
||||
pool.available_space(BackingBufferType::Vertices)
|
||||
);
|
||||
<span class="macro">println!</span>(<span class="string">"{:?}"</span>, <span class="kw-2">&</span>pool.index);
|
||||
<span class="macro">println!</span>(<span class="string">"{:?}"</span>, pool.index);
|
||||
|
||||
pool.allocate_layer_geometry(
|
||||
<span class="kw-2">&</span>queue,
|
||||
@ -1409,7 +1403,7 @@
|
||||
<span class="kw-2">&</span>[],
|
||||
);
|
||||
<span class="comment">// appended now at the beginning
|
||||
</span><span class="macro">println!</span>(<span class="string">"{:?}"</span>, <span class="kw-2">&</span>pool.index);
|
||||
</span><span class="macro">println!</span>(<span class="string">"{:?}"</span>, pool.index);
|
||||
<span class="macro">assert_eq!</span>(<span class="number">24</span>, pool.available_space(BackingBufferType::Vertices));
|
||||
|
||||
pool.allocate_layer_geometry(
|
||||
@ -1420,7 +1414,7 @@
|
||||
<span class="number">2</span>,
|
||||
<span class="kw-2">&</span>[],
|
||||
);
|
||||
<span class="macro">println!</span>(<span class="string">"{:?}"</span>, <span class="kw-2">&</span>pool.index);
|
||||
<span class="macro">println!</span>(<span class="string">"{:?}"</span>, pool.index);
|
||||
<span class="macro">assert_eq!</span>(<span class="number">0</span>, pool.available_space(BackingBufferType::Vertices));
|
||||
|
||||
pool.allocate_layer_geometry(
|
||||
@ -1431,7 +1425,7 @@
|
||||
<span class="number">2</span>,
|
||||
<span class="kw-2">&</span>[],
|
||||
);
|
||||
<span class="macro">println!</span>(<span class="string">"{:?}"</span>, <span class="kw-2">&</span>pool.index);
|
||||
<span class="macro">println!</span>(<span class="string">"{:?}"</span>, pool.index);
|
||||
<span class="macro">assert_eq!</span>(<span class="number">24</span>, pool.available_space(BackingBufferType::Vertices));
|
||||
|
||||
pool.allocate_layer_geometry(
|
||||
@ -1442,7 +1436,7 @@
|
||||
<span class="number">2</span>,
|
||||
<span class="kw-2">&</span>[],
|
||||
);
|
||||
<span class="macro">println!</span>(<span class="string">"{:?}"</span>, <span class="kw-2">&</span>pool.index);
|
||||
<span class="macro">println!</span>(<span class="string">"{:?}"</span>, pool.index);
|
||||
<span class="macro">assert_eq!</span>(<span class="number">0</span>, pool.available_space(BackingBufferType::Vertices));
|
||||
}
|
||||
}
|
||||
|
||||
@ -358,7 +358,7 @@
|
||||
})
|
||||
.collect::<Vec<<span class="kw">_</span>>>();
|
||||
|
||||
<span class="macro">log::debug!</span>(<span class="string">"Allocating geometry at {}"</span>, <span class="kw-2">&</span>coords);
|
||||
<span class="macro">log::debug!</span>(<span class="string">"Allocating geometry at {coords}"</span>);
|
||||
buffer_pool.allocate_layer_geometry(
|
||||
queue,
|
||||
<span class="kw-2">*</span>coords,
|
||||
|
||||
@ -212,7 +212,7 @@
|
||||
|
||||
<span class="kw">pub fn </span>update_zoom(<span class="kw-2">&mut </span><span class="self">self</span>, new_zoom: Zoom) {
|
||||
<span class="kw-2">*</span><span class="self">self</span>.zoom = new_zoom;
|
||||
<span class="macro">log::info!</span>(<span class="string">"zoom: {}"</span>, new_zoom);
|
||||
<span class="macro">log::info!</span>(<span class="string">"zoom: {new_zoom}"</span>);
|
||||
}
|
||||
|
||||
<span class="kw">pub fn </span>camera(<span class="kw-2">&</span><span class="self">self</span>) -> <span class="kw-2">&</span>Camera {
|
||||
|
||||
@ -179,7 +179,7 @@ function playground_text(playground, hidden = true) {
|
||||
// even if highlighting doesn't apply
|
||||
code_nodes.forEach(function (block) { block.classList.add('hljs'); });
|
||||
|
||||
Array.from(document.querySelectorAll("code.language-rust")).forEach(function (block) {
|
||||
Array.from(document.querySelectorAll("code.hljs")).forEach(function (block) {
|
||||
|
||||
var lines = Array.from(block.querySelectorAll('.boring'));
|
||||
// If no lines were hidden, return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user