build: move dx11 -> d3d11
This commit is contained in:
parent
4c4a918b9f
commit
46bc8a9e70
|
@ -9,10 +9,10 @@
|
|||
<sourceFolder url="file://$MODULE_DIR$/naga/benches" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/naga/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/naga/tests" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/librashader-runtime-dx11/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/librashader-runtime-gl/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/librashader-compiler/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/librashader-common/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/librashader-runtime-d3d11/src" isTestSource="false" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
|
|
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -416,7 +416,7 @@ dependencies = [
|
|||
"librashader-preprocess",
|
||||
"librashader-presets",
|
||||
"librashader-reflect",
|
||||
"librashader-runtime-dx11",
|
||||
"librashader-runtime-d3d11",
|
||||
"librashader-runtime-gl",
|
||||
]
|
||||
|
||||
|
@ -467,7 +467,7 @@ dependencies = [
|
|||
]
|
||||
|
||||
[[package]]
|
||||
name = "librashader-runtime-dx11"
|
||||
name = "librashader-runtime-d3d11"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"bytemuck",
|
||||
|
|
|
@ -5,6 +5,6 @@ members = [
|
|||
"librashader-presets",
|
||||
"librashader-preprocess",
|
||||
"librashader-reflect",
|
||||
"librashader-runtime-dx11",
|
||||
"librashader-runtime-d3d11",
|
||||
"librashader-runtime-gl",
|
||||
]
|
16
README.md
16
README.md
|
@ -13,14 +13,14 @@ librashader supports OpenGL 3, Vulkan, DirectX 11, and DirectX 12. Support is WI
|
|||
of DirectX and OpenGL, as well as Metal, are not supported (but pull-requests are welcome).
|
||||
|
||||
| **API** | **Status** | **`librashader` feature** |
|
||||
|------------|------------|---------------------------|
|
||||
| OpenGL 3 | ✔ | `gl` |
|
||||
| Vulkan | 🚧 | `vk` |
|
||||
| DirectX 11 | 🚧 | `dx11` |
|
||||
| DirectX 12 | 🚧 | `dx12` |
|
||||
| OpenGL 2 | ❌ | |
|
||||
| DirectX 9 | ❌ | |
|
||||
| Metal | ❌ | |
|
||||
|------------|------------|--------------------------|
|
||||
| OpenGL 3+ | ✔ | `gl` |
|
||||
| Vulkan | 🚧 | `vk` |
|
||||
| Direct3D11 | 🚧 | `d3d11` |
|
||||
| Direct3D12 | 🚧 | `d3d12` |
|
||||
| OpenGL 2 | ❌ | |
|
||||
| DirectX 9 | ❌ | |
|
||||
| Metal | ❌ | |
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "librashader-runtime-dx11"
|
||||
name = "librashader-runtime-d3d11"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
|
@ -30,7 +30,7 @@ mod tests {
|
|||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn triangle_dx11() {
|
||||
fn triangle_d3d11() {
|
||||
let sample = hello_triangle::d3d11_hello_triangle::Sample::new().unwrap();
|
||||
let device = sample.device.clone();
|
||||
let chain = filter_chain::FilterChain::load_from_path(&device, "../test/slang-shaders/crt/crt-royale.slangp").unwrap();
|
|
@ -9,7 +9,7 @@ librashader-common = { path = "../librashader-common" }
|
|||
librashader-presets = { path = "../librashader-presets" }
|
||||
librashader-preprocess = { path = "../librashader-preprocess" }
|
||||
librashader-reflect = { path = "../librashader-reflect" }
|
||||
librashader-runtime-dx11 = { path = "../librashader-runtime-dx11" }
|
||||
librashader-runtime-d3d11 = { path = "../librashader-runtime-d3d11" }
|
||||
librashader-runtime-gl = { path = "../librashader-runtime-gl" }
|
||||
|
||||
|
||||
|
|
|
@ -45,13 +45,8 @@ pub mod targets {
|
|||
pub mod runtime {
|
||||
|
||||
/// Shader runtime for DirectX 11.
|
||||
pub mod dx11 {
|
||||
pub use librashader_runtime_dx11::*;
|
||||
}
|
||||
|
||||
/// Shader runtime for DirectX 12.
|
||||
pub mod dx12 {
|
||||
pub use librashader_runtime_dx11::*;
|
||||
pub mod d3d11 {
|
||||
pub use librashader_runtime_d3d11::*;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue