mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Switch to using block_on directly from futures-executor instead of the umbrella crate
This commit is contained in:
parent
f3cb08170c
commit
6ffdad173d
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -6030,7 +6030,7 @@ dependencies = [
|
||||
"dot_vox",
|
||||
"enum-iterator",
|
||||
"euc",
|
||||
"futures",
|
||||
"futures-executor",
|
||||
"gilrs",
|
||||
"glyph_brush",
|
||||
"guillotiere",
|
||||
|
@ -85,7 +85,7 @@ crossbeam-channel = "0.5"
|
||||
directories-next = "2.0"
|
||||
dot_vox = "4.0"
|
||||
enum-iterator = "0.6"
|
||||
futures = "0.3"
|
||||
futures-executor = "0.3"
|
||||
guillotiere = "0.6"
|
||||
hashbrown = {version = "0.9", features = ["rayon", "serde", "nightly"]}
|
||||
image = {version = "0.23.12", default-features = false, features = ["ico", "png"]}
|
||||
|
@ -176,7 +176,7 @@ impl Renderer {
|
||||
#[allow(unsafe_code)]
|
||||
let surface = unsafe { instance.create_surface(window) };
|
||||
|
||||
let adapter = futures::executor::block_on(instance.request_adapter(
|
||||
let adapter = futures_executor::block_on(instance.request_adapter(
|
||||
&wgpu::RequestAdapterOptionsBase {
|
||||
power_preference: wgpu::PowerPreference::HighPerformance,
|
||||
compatible_surface: Some(&surface),
|
||||
@ -189,7 +189,7 @@ impl Renderer {
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
let (device, queue) = futures::executor::block_on(
|
||||
let (device, queue) = futures_executor::block_on(
|
||||
adapter.request_device(
|
||||
&wgpu::DeviceDescriptor {
|
||||
// TODO
|
||||
|
Loading…
Reference in New Issue
Block a user