From 9d96c45d822b181d4ec145d6c73cf3a2da499c24 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:19 +0100 Subject: fix(render): add vulkan context code --- examples/render-triangles/Cargo.toml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'examples') 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 "] 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 -- cgit v1.2.3