mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 12:41:30 +11:00
cargo fmt
This commit is contained in:
parent
f9bbb25a4b
commit
007ec6cdc0
|
@ -121,9 +121,7 @@ impl Instance {
|
|||
///
|
||||
/// When no surface is given, the instance is suitable for compute-only
|
||||
/// work.
|
||||
pub fn new(
|
||||
flags: InstanceFlags,
|
||||
) -> Result<Instance, Error> {
|
||||
pub fn new(flags: InstanceFlags) -> Result<Instance, Error> {
|
||||
let mut backends = [BackendType::Vulkan, BackendType::Dx12];
|
||||
if flags.contains(InstanceFlags::DX12) {
|
||||
backends.swap(0, 1);
|
||||
|
|
Loading…
Reference in a new issue