2024-08-23 14:56:56 +10:00
|
|
|
[package]
|
|
|
|
name = "librashader-test"
|
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
[dependencies]
|
2024-09-25 08:46:34 +10:00
|
|
|
librashader = { version = "0.4.5", path = "../librashader", default-features = false }
|
2024-08-23 14:56:56 +10:00
|
|
|
librashader-runtime = { version = "0.4.5", path = "../librashader-runtime"}
|
2024-09-25 08:46:34 +10:00
|
|
|
wgpu = { version = "22", default-features = false, optional = true }
|
|
|
|
wgpu-types = { version = "22", optional = true }
|
2024-08-23 14:56:56 +10:00
|
|
|
anyhow = "1.0.86"
|
2024-09-25 08:46:34 +10:00
|
|
|
image = { version = "0.25.2", default-features = false, features = ["png"] }
|
2024-08-23 14:56:56 +10:00
|
|
|
gfx-maths = "0.2.8"
|
|
|
|
|
2024-08-23 16:27:55 +10:00
|
|
|
pollster = "0.3.0"
|
|
|
|
parking_lot = "0.12.3"
|
|
|
|
image-compare = "0.4.1"
|
2024-08-25 14:03:59 +10:00
|
|
|
gpu-allocator = "0.27.0"
|
2024-09-24 14:45:48 +10:00
|
|
|
bitvec = "1.0.1"
|
2024-09-25 08:46:34 +10:00
|
|
|
d3d12-descriptor-heap = { version = "0.1", optional = true }
|
|
|
|
glow = { workspace = true, optional = true }
|
|
|
|
glfw = { workspace = true, optional = true }
|
|
|
|
ash = { workspace = true, optional = true }
|
2024-08-25 14:03:59 +10:00
|
|
|
|
|
|
|
[features]
|
2024-09-25 08:46:34 +10:00
|
|
|
vulkan = ["librashader/runtime-vk", "dep:ash"]
|
|
|
|
opengl = ["librashader/runtime-gl", "dep:glow", "dep:glfw"]
|
|
|
|
wgpu = ["librashader/runtime-wgpu", "dep:wgpu", "dep:wgpu-types"]
|
|
|
|
|
|
|
|
d3d11 = ["librashader/runtime-d3d11", "dep:windows"]
|
|
|
|
d3d12 = ["librashader/runtime-d3d12", "dep:windows"]
|
2024-09-25 09:14:59 +10:00
|
|
|
metal = ["librashader/runtime-metal", "dep:objc2", "dep:objc2-metal"]
|
2024-08-23 14:56:56 +10:00
|
|
|
|
|
|
|
[target.'cfg(windows)'.dependencies.windows]
|
|
|
|
workspace = true
|
2024-09-25 08:46:34 +10:00
|
|
|
optional = true
|
2024-08-23 14:56:56 +10:00
|
|
|
features = [
|
|
|
|
"Win32_Foundation",
|
|
|
|
"Win32_Graphics_Dxgi_Common",
|
|
|
|
"Win32_Graphics_Direct3D",
|
|
|
|
"Win32_Graphics_Direct3D11",
|
|
|
|
"Win32_Graphics_Direct3D_Fxc",
|
|
|
|
"Win32_Graphics_Gdi",
|
|
|
|
"Win32_Security",
|
|
|
|
"Win32_System_LibraryLoader",
|
|
|
|
"Win32_System_Threading",
|
|
|
|
"Win32_UI_WindowsAndMessaging",
|
|
|
|
"Win32_UI",
|
|
|
|
]
|
|
|
|
|
|
|
|
[target.'cfg(target_vendor="apple")'.dependencies]
|
2024-09-25 08:46:34 +10:00
|
|
|
objc2-metal = { version = "0.2.0" , features = [ "all" ], optional = true }
|
|
|
|
objc2 = { version = "0.5.0", features = ["apple"], optional = true }
|