1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Memory-type selection shared by the Vulkan external-memory imports.
use vk;
/// Picks the memory type an imported allocation is placed in.
///
/// `type_bits` is the set of memory types both the image and the external
/// handle accept. A device-local type is preferred, since every import here is
/// read by the GPU; otherwise the lowest compatible index is used.
///
/// # Panics
///
/// Panics when `type_bits` names no memory type of the device.