forked from Traverse-Research/gpu-allocator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
65 lines (55 loc) · 1.91 KB
/
Cargo.toml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[package]
name = "gpu-allocator"
version = "0.11.0"
authors = ["Traverse Research <opensource@traverseresearch.nl>"]
edition = "2018"
license = "MIT OR Apache-2.0"
description = "Memory allocator for GPU memory in Vulkan and DirectX 12"
categories = ["rendering", "rendering::graphics-api"]
homepage = "https://github.com/Traverse-Research/gpu-allocator"
repository = "https://github.com/Traverse-Research/gpu-allocator"
keywords = ["vulkan", "memory", "allocator"]
documentation = "https://docs.rs/gpu-allocator/"
include = [
"Cargo.toml",
"LICENSE-*",
"src/**",
]
[dependencies]
backtrace = "0.3"
log = "0.4"
thiserror = "1.0"
# Only needed for vulkan.
ash = { path = "../ash/ash", optional = true }
# Only needed for d3d12.
winapi = { version = "0.3.9", features = ["d3d12", "winerror", "impl-default", "impl-debug"], optional = true }
# Only needed for visualizer.
imgui = { version = "0.8", optional = true }
imgui-winit-support = { version = "0.8", optional = true }
[dev-dependencies]
ash-window = { path="../ash/ash-window" }
raw-window-handle = "0.3"
winapi = { version = "0.3.9", features = ["d3d12", "d3d12sdklayers", "dxgi1_6", "winerror", "impl-default", "impl-debug", "winuser", "windowsx", "libloaderapi"] }
winit = "0.25"
[[example]]
name = "vulkan-buffer"
path = "examples/vulkan-buffer/src/main.rs"
required-features = ["vulkan"]
[[example]]
name = "vulkan-visualization"
path = "examples/vulkan-visualization/src/main.rs"
required-features = ["vulkan", "visualizer"]
[[example]]
name = "d3d12-buffer"
path = "examples/d3d12-buffer/src/main.rs"
required-features = ["d3d12", "public-winapi"]
[[example]]
name = "d3d12-visualization"
path = "examples/d3d12-visualization/src/main.rs"
required-features = ["d3d12", "public-winapi", "visualizer"]
[features]
visualizer = ["imgui", "imgui-winit-support"]
vulkan = ["ash"]
d3d12 = ["winapi"]
public-winapi = ["winapi"]
default = ["d3d12", "vulkan", "public-winapi"]