Deploying to gh-pages from @ maplibre/maplibre-rs@acbc121e79 🚀

This commit is contained in:
maxammann 2023-01-14 14:29:27 +00:00
parent 025426e009
commit f166a13179
2 changed files with 4 additions and 4 deletions

View File

@ -242,13 +242,13 @@
<span class="kw">where
</span>MWC: MapWindowConfig,
{
<span class="prelude-val">Ok</span>(Renderer::initialize_headless(
Renderer::initialize_headless(
existing_window,
<span class="self">self</span>.wgpu_settings.clone(),
<span class="self">self</span>.renderer_settings,
)
.<span class="kw">await</span><span class="question-mark">?</span>)
}
.<span class="kw">await
</span>}
}
<span class="kw">pub struct </span>InitializedRenderer {

View File

@ -400,7 +400,7 @@
<span class="attribute">#[cfg(feature = <span class="string">&quot;headless&quot;</span>)]
</span><span class="kw">impl </span>BufferedTextureHead {
<span class="kw">pub fn </span>map_async&lt;<span class="lifetime">&#39;a</span>&gt;(<span class="kw-2">&amp;</span><span class="self">self</span>, device: <span class="kw-2">&amp;</span>wgpu::Device) -&gt; wgpu::BufferSlice {
<span class="kw">pub fn </span>map_async(<span class="kw-2">&amp;</span><span class="self">self</span>, device: <span class="kw-2">&amp;</span>wgpu::Device) -&gt; wgpu::BufferSlice {
<span class="comment">// Note that we&#39;re not calling `.await` here.
</span><span class="kw">let </span>buffer_slice = <span class="self">self</span>.output_buffer.slice(..);
buffer_slice.map_async(wgpu::MapMode::Read, |<span class="kw">_</span>| ());