diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:19 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:19 +0100 |
commit | 4cc81a601ef258ec38458778ee7c3392ddefc8ab (patch) | |
tree | 116e7f90f4cdc2a55b1cd3b2b5b582cccd6483af /stockton-render/Cargo.toml | |
parent | b4266e59e5b0ced3fcd74a4b0871a5b32e46e0ac (diff) |
chore(render): add render crate & example
Diffstat (limited to 'stockton-render/Cargo.toml')
-rw-r--r-- | stockton-render/Cargo.toml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/stockton-render/Cargo.toml b/stockton-render/Cargo.toml new file mode 100644 index 0000000..4dd5547 --- /dev/null +++ b/stockton-render/Cargo.toml @@ -0,0 +1,45 @@ +[package] +name = "stockton-render" +version = "0.1.0" +authors = ["Oscar <oscar.shrimpton.personal@gmail.com>"] +edition = "2018" + +[dependencies] +stockton-types = { path = "../stockton-types" } +winit = "0.19.1" +gfx-hal = "0.2.0" + +[features] +default = ["empty"] +empty = ["gfx-backend-empty"] +metal = ["gfx-backend-metal"] +gl = ["gfx-backend-gl"] +dx11 = ["gfx-backend-dx11"] +dx12 = ["gfx-backend-dx12"] +vulkan = ["gfx-backend-vulkan"] +unstable = [] + +[dependencies.gfx-backend-empty] +version = "0.2" +optional = true + +[dependencies.gfx-backend-gl] +version = "0.2" +features = ["glutin"] +optional = true + +[dependencies.gfx-backend-vulkan] +version = "0.2" +optional = true + +[target.'cfg(any(target_os = "macos", all(target_os = "ios", target_arch = "aarch64")))'.dependencies.gfx-backend-metal] +version = "0.2" +optional = true + +[target.'cfg(windows)'.dependencies.gfx-backend-dx11] +version = "0.2" +optional = true + +[target.'cfg(windows)'.dependencies.gfx-backend-dx12] +version = "0.2" +optional = true |