| [package] | |
| name = "vello_gpu" | |
| version = "0.3.0" | |
| description = "A GPU renderer for Vello with CPU-side preprocessing." | |
| categories = ["rendering", "graphics"] | |
| keywords = ["2d", "vector-graphics"] | |
| edition.workspace = true | |
| rust-version.workspace = true | |
| license.workspace = true | |
| repository.workspace = true | |
| [package.metadata.docs.rs] | |
| all-features = true | |
| default-target = "x86_64-unknown-linux-gnu" | |
| targets = ["wasm32-unknown-unknown"] | |
| [dependencies] | |
| bytemuck = { workspace = true, features = ["derive"] } | |
| thiserror = { workspace = true } | |
| vello_common = { workspace = true, features = ["std"] } | |
| glifo = { workspace = true, default-features = false, optional = true } | |
| wgpu = { workspace = true, default-features = false, optional = true } | |
| vello_gpu_shaders = { workspace = true, optional = true } | |
| log = { workspace = true } | |
| hashbrown = { workspace = true } | |
| js-sys = { workspace = true, optional = true } | |
| web-sys = { workspace = true, features = [ | |
| "HtmlCanvasElement", | |
| "WebGl2RenderingContext", | |
| "WebGlContextAttributes", | |
| "WebGlProgram", | |
| "WebGlUniformLocation", | |
| "WebGlBuffer", | |
| "WebGlShader", | |
| "WebGlSync", | |
| "WebGlTexture", | |
| "WebGlFramebuffer", | |
| "WebGlRenderbuffer", | |
| "WebGlVertexArrayObject", | |
| ], optional = true } | |
| [dev-dependencies] | |
| png = { workspace = true } | |
| pollster = { workspace = true } | |
| vello_common = { workspace = true, features = ["pico_svg"] } | |
| roxmltree = "0.20.0" | |
| [features] | |
| default = ["wgpu", "wgpu_default", "text"] | |
| std = ["vello_common/std", "glifo?/std"] | |
| libm = ["vello_common/libm", "glifo?/libm"] | |
| wgpu = ["dep:wgpu", "dep:vello_gpu_shaders"] | |
| # Enable wgpu with its default features. If you need to customise the set of enabled wgpu features, | |
| # please disable this crate's default features, enable its "wgpu" feature, then depend on wgpu directly | |
| # with the features which you need enabled. | |
| wgpu_default = ["wgpu", "wgpu/default"] | |
| # Add support for text rendering. | |
| text = ["dep:glifo", "glifo/std"] | |
| probe = ["vello_common/probe"] | |
| webgl = ["dep:js-sys", "dep:web-sys", "dep:vello_gpu_shaders", "vello_gpu_shaders/glsl"] | |
| [lints] | |
| workspace = true | |
| [[example]] | |
| name = "render_to_file" | |
| required-features = ["wgpu"] |