[package]
name = "renderling"
version = "0.4.9"
edition = "2021"
description = "User-friendly real-time rendering. 🍖"
repository = "https://github.com/schell/renderling"
license = "MIT OR Apache-2.0"
keywords = ["game", "graphics", "shader", "rendering"]
categories = ["rendering", "game-development", "graphics"]
readme = "../../README.md"
[lib]
crate-type = ["rlib", "cdylib"]
[features]
default = ["gltf", "sdf", "shaders", "tutorial", "winit"]
shaders = [
"array_test",
"bloom",
"brdf_lut_convolution_fragment",
"brdf_lut_convolution_vertex",
"generate_mipmap_fragment",
"generate_mipmap_vertex",
"prefilter_environment_cubemap_fragment",
"prefilter_environment_cubemap_vertex",
"renderlet_fragment",
"renderlet_vertex",
"skybox_cubemap_fragment",
"skybox_cubemap_vertex",
"skybox_equirectangular_fragment",
"skybox_vertex",
"test_i8_i16_extraction",
"tonemapping_fragment",
"tonemapping_vertex"
]
gltf = ["dep:gltf", "dep:serde_json"]
sdf = []
tutorial = [
"tutorial_passthru_fragment",
"tutorial_implicit_isosceles_vertex",
"tutorial_slabbed_vertices_no_instance",
"tutorial_slabbed_vertices",
"tutorial_slabbed_renderlet"
]
bloom = [
"bloom_downsample_fragment",
"bloom_upsample_fragment",
"bloom_mix_fragment",
"bloom_vertex"
]
array_test = []
bloom_downsample_fragment = []
bloom_upsample_fragment = []
bloom_mix_fragment = []
bloom_vertex = []
brdf_lut_convolution_fragment = []
brdf_lut_convolution_vertex = []
generate_mipmap_fragment = []
generate_mipmap_vertex = []
prefilter_environment_cubemap_fragment = []
prefilter_environment_cubemap_vertex = []
renderlet_fragment = []
renderlet_vertex = []
skybox_cubemap_fragment = []
skybox_cubemap_vertex = []
skybox_equirectangular_fragment = []
skybox_vertex = []
test_i8_i16_extraction = []
test_spirv_atomics = []
tonemapping_fragment = []
tonemapping_vertex = []
tutorial_passthru_fragment = []
tutorial_implicit_isosceles_vertex = []
tutorial_slabbed_vertices_no_instance = []
tutorial_slabbed_vertices = []
tutorial_slabbed_renderlet = []
wasm = ["wgpu/fragile-send-sync-non-atomic-wasm"]
[dependencies]
spirv-std = "0.9"
[target.'cfg(target_arch = "spirv")'.dependencies]
crabslab = { workspace = true, features = ["glam"] }
half = { version = "2.3", default-features = false }
glam = { workspace = true, default-features = false, features = ["libm"] }
[target.'cfg(not(target_arch = "spirv"))'.dependencies]
async-channel = {workspace = true}
bytemuck = {workspace = true}
crabslab = { workspace = true, features = ["default"] }
dagga = {workspace=true}
crunch = "0.5"
futures-lite = {workspace=true}
glam = { workspace = true, features = ["std"] }
gltf = {workspace = true, optional = true}
half = "2.3"
image = {workspace = true, features = ["hdr"]}
log = {workspace = true}
rustc-hash = {workspace = true}
serde_json = {workspace = true, optional = true}
snafu = {workspace = true}
wgpu = { workspace = true, features = ["spirv"] }
winit = { workspace = true, optional = true }
[dev-dependencies]
assert_approx_eq = {workspace = true}
ctor = "0.2.2"
env_logger = {workspace = true}
icosahedron = "0.1"
img-diff = { path = "../img-diff" }
naga.workspace = true
pretty_assertions.workspace = true
ttf-parser = "0.20.0"
[target.'cfg(not(target_arch = "spirv"))'.dev-dependencies]
glam = { workspace = true, features = ["std", "debug-glam-assert"] }