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 | 9d96c45d822b181d4ec145d6c73cf3a2da499c24 (patch) | |
tree | dcbe688ff8295cbd0122c89722bb0c44f393293b /examples | |
parent | 2a90de8796c7d1d4ae8aa7f2c48f7a8b38dac387 (diff) |
fix(render): add vulkan context code
Diffstat (limited to 'examples')
-rw-r--r-- | examples/render-triangles/Cargo.toml | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/examples/render-triangles/Cargo.toml b/examples/render-triangles/Cargo.toml index dd2c189..59d6e19 100644 --- a/examples/render-triangles/Cargo.toml +++ b/examples/render-triangles/Cargo.toml @@ -4,6 +4,11 @@ version = "0.1.0" authors = ["Oscar <oscar.shrimpton.personal@gmail.com>"] edition = "2018" +[features] +default = [] +gl = ["stockton-render/gl"] +vulkan = ["stockton-render/vulkan"] + [dependencies] stockton-render = { path = "../../stockton-render" } stockton-types = { path = "../../stockton-types" } @@ -12,19 +17,3 @@ winit = "0.19.1" log = "0.4.0" simple_logger = "1.0" rand = "0.7" - -[target.'cfg(feature = "gl")'.dependencies.stockton-render] -path = "../../stockton-render" -features = ["gl"] - -# [target.'cfg(feature = "dx11")'.dependencies.stockton-render] -# path = "../../stockton-render" -# features = ["dx11"] - -# [target.'cfg(feature = "dx12")'.dependencies.stockton-render] -# path = "../../stockton-render" -# features = ["dx12"] - -# [target.'cfg(feature = "vulkan")'.dependencies.stockton-render] -# path = "../../stockton-render" -# features = ["vulkan"]
\ No newline at end of file |