forked from linebender/vello
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
37 lines (30 loc) · 1.19 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
[package]
name = "vello_shaders"
version.workspace = true # We mimic Vello's version
description = "Vello infrastructure to preprocess and cross-compile shaders at compile time."
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
[features]
default = ["wgsl", "full", "cpu"]
compile = ["dep:naga", "dep:thiserror"]
# Enables the complete imaging model. When this feature is disabled, the fine rasterization
# stage only supports drawing paths with a solid brush and clipping, and the shaders can
# not be run with an encoding that contains gradient fills and images.
full = []
# Target shading language variants of the vello shaders to link into the library.
wgsl = []
msl = ["naga?/msl-out"]
# Enable the CPU versions of the shaders
cpu = ["dep:bytemuck", "dep:vello_encoding"]
[lints]
workspace = true
[dependencies]
bytemuck = { workspace = true, optional = true }
naga = { version = "22.1.0", features = ["wgsl-in"], optional = true }
thiserror = { workspace = true, optional = true }
vello_encoding = { workspace = true, optional = true }
[build-dependencies]
naga = { version = "22.1.0", features = ["wgsl-in"] }
thiserror = { workspace = true }