-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
47 lines (39 loc) · 1.79 KB
/
Cargo.toml
File metadata and controls
47 lines (39 loc) · 1.79 KB
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
38
39
40
41
42
43
44
45
46
47
[package]
name = "geyser"
version = "0.1.0"
edition = "2021"
description = "High-performance library for zero-copy GPU texture sharing across Vulkan, Metal, and WebGPU."
license = "MIT OR Apache-2.0"
[dependencies]
# Abstract common traits and error handling
thiserror = "1.0"
# Vulkan dependencies (for the vulkan backend)
# You'll need to choose a Vulkan binding library. `ash` is a popular low-level choice.
# feature = "all" or specific extensions might be needed for interop.
ash = { version = "0.38", optional = true, features = ["linked"] }
gpu-allocator = { version = "0.27", optional = true } # For memory allocation
# Metal dependencies (for the metal backend)
# `metal` crate provides direct bindings.
metal = { version = "0.29", optional = true }
core-graphics = { version = "0.23", optional = true } # For common CoreGraphics types
# WebGPU dependencies (for the webgpu backend - future)
# wgpu = { version = "0.19", optional = true }
wgpu-hal = { version = "27", optional = true }
wgpu-types = { version = "27", optional = true }
# Bevy integration dependencies
bevy = { version = "0.14", default-features = false, features = ["bevy_asset", "bevy_render", "bevy_winit", "bevy_core_pipeline", "bevy_sprite", "png", "x11"], optional = true }
[dev-dependencies]
# For testing and examples
anyhow = "1.0" # Simple error handling in examples
criterion = "0.5" # Benchmarking
serde = { version = "1.0", features = ["derive"] } # Serialization for IPC
bincode = "1.3" # Binary serialization for IPC
[[bench]]
name = "texture_ops"
harness = false
[features]
default = []
vulkan = ["dep:ash", "dep:gpu-allocator"]
metal = ["dep:metal", "dep:core-graphics"]
webgpu = [] # Add ["dep:wgpu"] when starting WebGPU implementation
bevy = ["dep:bevy", "dep:wgpu-hal", "dep:wgpu-types"] # Enables Bevy plugin with wgpu-hal bridge