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@1b73ad5908 🚀
This commit is contained in:
parent
acb1ad88a8
commit
bab8aab7d6
@ -980,7 +980,7 @@
|
||||
<span class="kw">let </span>instance = wgpu::Instance::new(backends);
|
||||
<span class="kw">let </span>adapter = wgpu::util::initialize_adapter_from_env_or_default(<span class="kw-2">&</span>instance, backends, <span class="prelude-val">None</span>)
|
||||
.<span class="kw">await
|
||||
</span>.unwrap();
|
||||
</span>.expect(<span class="string">"Unable to initialize adapter"</span>);
|
||||
|
||||
<span class="kw">let </span>(device, queue) = adapter
|
||||
.request_device(
|
||||
@ -993,7 +993,7 @@
|
||||
)
|
||||
.<span class="kw">await
|
||||
</span>.ok()
|
||||
.unwrap();
|
||||
.expect(<span class="string">"Unable to request device"</span>);
|
||||
|
||||
<span class="kw">let </span>render_state = RenderState::new(Surface::from_image(
|
||||
<span class="kw-2">&</span>device,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user