build: make librashader-reflect features-table more consistent
This commit is contained in:
parent
562e1e5f18
commit
7555bb9024
|
@ -8,7 +8,7 @@ librashader (*/ˈli:brəʃeɪdɚ/*) is a preprocessor, compiler, and runtime for
|
|||
|
||||
[![Latest Version](https://img.shields.io/crates/v/librashader.svg)](https://crates.io/crates/librashader) [![Docs](https://docs.rs/librashader/badge.svg)](https://docs.rs/librashader) [![build result](https://build.opensuse.org/projects/home:chyyran:librashader/packages/librashader/badge.svg)](https://software.opensuse.org//download.html?project=home%3Achyyran%3Alibrashader&package=librashader)
|
||||
![License](https://img.shields.io/crates/l/librashader)
|
||||
![Nightly rust](https://img.shields.io/badge/rust-nightly-orange.svg) ![Stable rust](https://img.shields.io/badge/rust-1.77-blue.svg)
|
||||
![Stable rust](https://img.shields.io/badge/rust-1.78-blue.svg) ![Nightly rust](https://img.shields.io/badge/rust-nightly-orange.svg)
|
||||
|
||||
## Installation
|
||||
For end-users, librashader is available from the [Open Build Service](https://software.opensuse.org//download.html?project=home%3Achyyran%3Alibrashader&package=librashader) for a variety of Linux distributions and platforms.
|
||||
|
|
|
@ -38,13 +38,13 @@ optional = true
|
|||
|
||||
[features]
|
||||
default = ["cross", "naga", "wgsl", "msl"]
|
||||
dxil = ["spirv-cross2/hlsl", "dep:spirv-to-dxil"]
|
||||
wgsl = ["cross", "naga/wgsl-out", "dep:spirv", "dep:rspirv"]
|
||||
cross = [ "dep:spirv-cross2", "spirv-cross2/glsl", "spirv-cross2/hlsl", "spirv-cross2/msl" ]
|
||||
naga = [ "dep:rspirv", "dep:spirv", "naga/spv-in", "naga/spv-out", "naga/wgsl-out", "naga/msl-out" ]
|
||||
dxil = [ "spirv-cross2?/hlsl", "dep:spirv-to-dxil" ]
|
||||
wgsl = [ "cross", "naga", "naga/wgsl-out", "dep:spirv", "dep:rspirv"]
|
||||
cross = [ "spirv-cross2", "spirv-cross2/glsl", "spirv-cross2/hlsl", "spirv-cross2/msl" ]
|
||||
naga = [ "dep:rspirv", "dep:spirv", "dep:naga", "naga/spv-in", "naga/spv-out", "naga/wgsl-out", "naga/msl-out" ]
|
||||
serde = ["dep:serde", "serde/derive", "librashader-common/serde", "bitflags/serde"]
|
||||
msl = [ "cross", "spirv-cross2/msl", "naga?/msl-out" ]
|
||||
|
||||
msl = [ "spirv-cross2/msl", "naga/msl-out" ]
|
||||
stable = []
|
||||
|
||||
unstable-naga-in = ["naga/glsl-in"]
|
||||
|
|
|
@ -44,8 +44,6 @@
|
|||
//! a pure-Rust shader compiler, as well as SPIRV-Cross via [SpirvCompilation](crate::front::SpirvCompilation)
|
||||
//! is supported.
|
||||
#![cfg_attr(not(feature = "stable"), feature(impl_trait_in_assoc_type))]
|
||||
#![allow(stable_features)]
|
||||
#![cfg_attr(not(feature = "stable"), feature(c_str_literals))]
|
||||
/// Shader codegen backends.
|
||||
pub mod back;
|
||||
/// Error types.
|
||||
|
|
Loading…
Reference in a new issue