aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/draw/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stockton-render/src/draw/utils.rs')
-rw-r--r--stockton-render/src/draw/utils.rs18
1 files changed, 8 insertions, 10 deletions
diff --git a/stockton-render/src/draw/utils.rs b/stockton-render/src/draw/utils.rs
index e175e47..97d303e 100644
--- a/stockton-render/src/draw/utils.rs
+++ b/stockton-render/src/draw/utils.rs
@@ -16,13 +16,13 @@
*/
use crate::types::*;
-use hal::{
- memory::{Properties as MemProperties},
- MemoryTypeId,
- prelude::*,
-};
+use hal::{memory::Properties as MemProperties, prelude::*, MemoryTypeId};
-pub fn find_memory_type_id(adapter: &Adapter, type_mask: u64, props: MemProperties) -> Option<MemoryTypeId> {
+pub fn find_memory_type_id(
+ adapter: &Adapter,
+ type_mask: u64,
+ props: MemProperties,
+) -> Option<MemoryTypeId> {
adapter
.physical_device
.memory_properties()
@@ -30,9 +30,7 @@ pub fn find_memory_type_id(adapter: &Adapter, type_mask: u64, props: MemProperti
.iter()
.enumerate()
.find(|&(id, memory_type)| {
- type_mask & (1 << id) != 0 &&
- memory_type.properties.contains(props)
+ type_mask & (1 << id) != 0 && memory_type.properties.contains(props)
})
.map(|(id, _)| MemoryTypeId(id))
-
-} \ No newline at end of file
+}