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@acbc121e79 🚀
This commit is contained in:
parent
025426e009
commit
f166a13179
@ -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 {
|
||||
|
||||
@ -400,7 +400,7 @@
|
||||
|
||||
<span class="attribute">#[cfg(feature = <span class="string">"headless"</span>)]
|
||||
</span><span class="kw">impl </span>BufferedTextureHead {
|
||||
<span class="kw">pub fn </span>map_async<<span class="lifetime">'a</span>>(<span class="kw-2">&</span><span class="self">self</span>, device: <span class="kw-2">&</span>wgpu::Device) -> wgpu::BufferSlice {
|
||||
<span class="kw">pub fn </span>map_async(<span class="kw-2">&</span><span class="self">self</span>, device: <span class="kw-2">&</span>wgpu::Device) -> wgpu::BufferSlice {
|
||||
<span class="comment">// Note that we'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>| ());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user