[package]
name = "cgpu"
version = "0.1.0"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "A tunable GPU compute executor with automatic CPU fallback, byte-based batching, and inline shader generation."
readme = "Readme.md"
repository = "https://github.com/Radiiplus/cgpu"
homepage = "https://github.com/Radiiplus/cgpu"
documentation = "https://docs.rs/cgpu"
keywords = ["gpu", "compute", "wgpu", "fallback", "batching"]
categories = ["concurrency", "hardware-support", "rendering"]
publish = true
include = [
"Cargo.toml",
"Readme.md",
"LICENSE-APACHE",
"LICENSE-MIT",
"src/**",
"tests/**",
]
[features]
default = ["gpu", "telemetry", "shader"]
gpu = ["dep:wgpu", "dep:pollster", "dep:windows"]
telemetry = []
shader = ["shader-gen"]
shader-gen = []
async = ["dep:tokio"]
vulkan = ["wgpu?/vulkan"]
dx12 = ["wgpu?/dx12"]
metal = ["wgpu?/metal"]
webgl = ["wgpu?/webgl"]
[dependencies]
pollster = { version = "0.4.0", optional = true }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.145"
tokio = { version = "1", optional = true, default-features = false, features = ["rt"] }
wgpu = { version = "29.0.3", optional = true }
[target.'cfg(windows)'.dependencies]
windows = { version = "0.62.2", optional = true, features = ["Win32_Graphics_Dxgi", "Win32_Foundation"] }