Skip to content

Commit 5c4c1dd

Browse files
authored
Upgrade to amethyst 0.15, introduce features for choosing backend (#14)
1 parent 141611a commit 5c4c1dd

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Cargo.toml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "amethyst-imgui"
3-
version = "0.6.1"
3+
version = "0.7.0"
44
description = "imgui library for amethyst"
55
license = "CC0-1.0"
66
authors = ["Awpteamoose <[email protected]>", "Walter Pearce <[email protected]>"]
@@ -9,14 +9,16 @@ readme = "README.md"
99
edition = "2018"
1010

1111
[features]
12-
default = ["amethyst/vulkan"]
12+
vulkan = ["amethyst/vulkan"]
13+
metal = ["amethyst/metal"]
14+
empty = ["amethyst/empty"]
1315
shader-compiler = ["amethyst/shader-compiler"]
1416
docking = []
1517

1618
[dependencies]
1719
imgui = { version = "0.2" }
1820
imgui-winit-support = { version = "0.2" }
19-
amethyst = { version = "0.14" }
21+
amethyst = { version = "0.15" }
2022

2123
# Development dependencies
2224
#amethyst = { path = "../amethyst", features = ["saveload", "vulkan", "gltf", "experimental-spirv-reflection", "shader-compiler", "tiles"] }

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,21 @@ This crate provides an amethyst `RenderPlugin` (available since amethyst 0.12) w
1414
A minimal example is available at [examples/demo_window.rs](examples/demo_window.rs)
1515

1616
```
17-
cargo run --example demo_window --features amethyst/vulkan
17+
# For Windows/Linux:
18+
cargo run --example demo_window --features vulkan
19+
# For MacOS:
20+
cargo run --example demo_window --features metal
1821
```
1922

20-
## Usage
23+
## Usage
2124

2225
This crate currently requires including the amethyst crate; this may introduce a full recompilation of amethyst due to differing features. If this is the case, you'll need to clone this git repository and and set the appropriate features.
2326

2427
This create uses the amethyst `shader-compiler`, which relies on `shaderc` to compile its shaders at build time. Finally, this crate exposes the same rendering features as amethyst, and will pass them along to amethyst.
2528

2629
Example Cargo.toml Usage:
2730
```toml
28-
amethyst-imgui = "0.5"
31+
amethyst-imgui = { version = "0.7", features = ["vulkan"] }
2932
```
3033

3134

0 commit comments

Comments
 (0)