cli: rename librashader-test -> librashader-cli

This commit is contained in:
chyyran 2024-09-26 19:12:46 -04:00 committed by Ronny Chan
parent 227757a221
commit 55ff7a93f2
21 changed files with 40 additions and 34 deletions

58
Cargo.lock generated
View file

@ -1583,6 +1583,35 @@ dependencies = [
"windows 0.58.0", "windows 0.58.0",
] ]
[[package]]
name = "librashader-cli"
version = "0.4.5"
dependencies = [
"anyhow",
"ash",
"bitvec",
"clap",
"d3d12-descriptor-heap",
"gfx-maths",
"glfw",
"glow 0.14.1",
"gpu-allocator 0.27.0",
"image",
"image-compare",
"librashader",
"librashader-runtime",
"objc2 0.5.2",
"objc2-metal",
"parking_lot",
"pollster",
"serde",
"serde_json",
"spq-spvasm",
"wgpu",
"wgpu-types",
"windows 0.58.0",
]
[[package]] [[package]]
name = "librashader-common" name = "librashader-common"
version = "0.4.5" version = "0.4.5"
@ -1812,35 +1841,6 @@ dependencies = [
"winit", "winit",
] ]
[[package]]
name = "librashader-test"
version = "0.1.0"
dependencies = [
"anyhow",
"ash",
"bitvec",
"clap",
"d3d12-descriptor-heap",
"gfx-maths",
"glfw",
"glow 0.14.1",
"gpu-allocator 0.27.0",
"image",
"image-compare",
"librashader",
"librashader-runtime",
"objc2 0.5.2",
"objc2-metal",
"parking_lot",
"pollster",
"serde",
"serde_json",
"spq-spvasm",
"wgpu",
"wgpu-types",
"windows 0.58.0",
]
[[package]] [[package]]
name = "libredox" name = "libredox"
version = "0.0.2" version = "0.0.2"

View file

@ -8,13 +8,16 @@ members = [
"librashader-runtime", "librashader-runtime",
"librashader-runtime-d3d11", "librashader-runtime-d3d11",
"librashader-runtime-d3d12", "librashader-runtime-d3d12",
"librashader-runtime-d3d9",
"librashader-runtime-gl", "librashader-runtime-gl",
"librashader-runtime-vk", "librashader-runtime-vk",
"librashader-runtime-mtl", "librashader-runtime-mtl",
"librashader-runtime-wgpu", "librashader-runtime-wgpu",
"librashader-cache", "librashader-cache",
"librashader-capi", "librashader-capi",
"librashader-build-script", "librashader-runtime-d3d9", "librashader-test"] "librashader-build-script",
"librashader-cli"
]
resolver = "2" resolver = "2"
[workspace.dependencies] [workspace.dependencies]

View file

@ -48,7 +48,6 @@ of the internals if you wish to use parts of librashader piecemeal.
The librashader C API is best used by including `librashader_ld.h` in your project, which implements a loader that dynamically The librashader C API is best used by including `librashader_ld.h` in your project, which implements a loader that dynamically
loads the librashader (`librashader.so`, `librashader.dll`, or `librashader.dylib`) implementation in the search path. loads the librashader (`librashader.so`, `librashader.dll`, or `librashader.dylib`) implementation in the search path.
### C compatibility ### C compatibility
The recommended way of integrating `librashader` is by the `librashader_ld` single header library which implements The recommended way of integrating `librashader` is by the `librashader_ld` single header library which implements
a dynamic loader for `librashader.dll` / `librashader.so` / `librashader.dylib`. See the [versioning policy](https://github.com/SnowflakePowered/librashader#versioning) a dynamic loader for `librashader.dll` / `librashader.so` / `librashader.dylib`. See the [versioning policy](https://github.com/SnowflakePowered/librashader#versioning)
@ -76,6 +75,7 @@ The Metal runtime is **not thread safe**. However you can still defer submission
`filter_chain_create_deferred` function. `filter_chain_create_deferred` function.
The Direct3D 9 API is not thread safe, unless `D3DCREATE_MULTITHREADED` is enabled at device creation. The Direct3D 9 API is not thread safe, unless `D3DCREATE_MULTITHREADED` is enabled at device creation.
### Quad vertices and rotations ### Quad vertices and rotations
All runtimes render intermediate passes with an identity matrix MVP and a VBO for with range `[-1, 1]`. The final pass uses a All runtimes render intermediate passes with an identity matrix MVP and a VBO for with range `[-1, 1]`. The final pass uses a
Quad VBO with range `[0, 1]` and the following projection matrix by default. Quad VBO with range `[0, 1]` and the following projection matrix by default.
@ -101,6 +101,8 @@ ensure that your runtime has consistent behaviour for uniform and texture semant
These types should not be exposed to the end user in the runtime's public API, and should be kept internal to the implementation of These types should not be exposed to the end user in the runtime's public API, and should be kept internal to the implementation of
the runtime. the runtime.
## Command-line interface
librashader provides a
## Building ## Building
@ -128,7 +130,7 @@ While librashader is intended to be used with nightly Rust until [required featu
built with stable Rust with the `stable` feature. built with stable Rust with the `stable` feature.
```toml ```toml
librashader = { features = "stable" } librashader = { features = ["stable"] }
``` ```
If building the C API, the `--stable` flag in the build script will enable the `stable` feature. If building the C API, the `--stable` flag in the build script will enable the `stable` feature.

View file

@ -1,9 +1,10 @@
[package] [package]
name = "librashader-test" name = "librashader-cli"
version = "0.1.0" version = "0.4.5"
edition = "2021" edition = "2021"
[lib] [lib]
name = "librashader_test"
path = "src/lib.rs" path = "src/lib.rs"
[[bin]] [[bin]]