doc: Vulkan runtime is not limited to 1.3 anymore
This commit is contained in:
parent
3eae38f815
commit
d6b492c614
|
@ -35,46 +35,46 @@ mod tests {
|
||||||
// "../test/slang-shaders/scalefx/scalefx-9x.slangp",
|
// "../test/slang-shaders/scalefx/scalefx-9x.slangp",
|
||||||
// "../test/slang-shaders/bezel/koko-aio/monitor-bloom.slangp",
|
// "../test/slang-shaders/bezel/koko-aio/monitor-bloom.slangp",
|
||||||
// "../test/slang-shaders/presets/crt-geom-ntsc-upscale-sharp.slangp",
|
// "../test/slang-shaders/presets/crt-geom-ntsc-upscale-sharp.slangp",
|
||||||
// "../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV.slangp",
|
const FILTER_PATH: &str = "../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV.slangp";
|
||||||
// "../test/null.slangp",
|
// "../test/null.slangp",
|
||||||
const FILTER_PATH: &str = "../test/slang-shaders/scalefx/scalefx-9x.slangp";
|
// const FILTER_PATH: &str = "../test/slang-shaders/scalefx/scalefx-9x.slangp";
|
||||||
|
|
||||||
// const FILTER_PATH: &str = "../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV.slangp";
|
// const FILTER_PATH: &str = "../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV.slangp";
|
||||||
const IMAGE_PATH: &str = "../test/finalfightlong.png";
|
const IMAGE_PATH: &str = "../test/finalfightlong.png";
|
||||||
#[test]
|
// #[test]
|
||||||
fn triangle_d3d11_args() {
|
// fn triangle_d3d11_args() {
|
||||||
let mut args = env::args();
|
// let mut args = env::args();
|
||||||
let _ = args.next();
|
// let _ = args.next();
|
||||||
let _ = args.next();
|
// let _ = args.next();
|
||||||
let filter = args.next();
|
// let filter = args.next();
|
||||||
let image = args
|
// let image = args
|
||||||
.next()
|
// .next()
|
||||||
.and_then(|f| Image::load(f, UVDirection::TopLeft).ok())
|
// .and_then(|f| Image::load(f, UVDirection::TopLeft).ok())
|
||||||
.or_else(|| Some(Image::load(IMAGE_PATH, UVDirection::TopLeft).unwrap()))
|
// .or_else(|| Some(Image::load(IMAGE_PATH, UVDirection::TopLeft).unwrap()))
|
||||||
.unwrap();
|
// .unwrap();
|
||||||
|
//
|
||||||
let sample = hello_triangle::d3d11_hello_triangle::Sample::new(
|
// let sample = hello_triangle::d3d11_hello_triangle::Sample::new(
|
||||||
filter.as_deref().unwrap_or(FILTER_PATH),
|
// filter.as_deref().unwrap_or(FILTER_PATH),
|
||||||
Some(&FilterChainOptionsD3D11 {
|
// Some(&FilterChainOptionsD3D11 {
|
||||||
use_deferred_context: false,
|
// use_deferred_context: false,
|
||||||
force_no_mipmaps: false,
|
// force_no_mipmaps: false,
|
||||||
}),
|
// }),
|
||||||
// replace below with 'None' for the triangle
|
// // replace below with 'None' for the triangle
|
||||||
Some(image),
|
// Some(image),
|
||||||
)
|
|
||||||
.unwrap();
|
|
||||||
// let sample = hello_triangle_old::d3d11_hello_triangle::Sample::new(
|
|
||||||
// "../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV.slangp",
|
|
||||||
// Some(&FilterChainOptions {
|
|
||||||
// use_deferred_context: true,
|
|
||||||
// })
|
|
||||||
// )
|
// )
|
||||||
// .unwrap();
|
// .unwrap();
|
||||||
|
// // let sample = hello_triangle_old::d3d11_hello_triangle::Sample::new(
|
||||||
// let sample = hello_triangle_old::d3d11_hello_triangle::Sample::new("../test/basic.slangp").unwrap();
|
// // "../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV.slangp",
|
||||||
|
// // Some(&FilterChainOptions {
|
||||||
hello_triangle::main(sample).unwrap();
|
// // use_deferred_context: true,
|
||||||
}
|
// // })
|
||||||
|
// // )
|
||||||
|
// // .unwrap();
|
||||||
|
//
|
||||||
|
// // let sample = hello_triangle_old::d3d11_hello_triangle::Sample::new("../test/basic.slangp").unwrap();
|
||||||
|
//
|
||||||
|
// hello_triangle::main(sample).unwrap();
|
||||||
|
// }
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn triangle_d3d11() {
|
fn triangle_d3d11() {
|
||||||
|
|
|
@ -265,7 +265,7 @@ pub mod runtime {
|
||||||
|
|
||||||
#[cfg(feature = "vk")]
|
#[cfg(feature = "vk")]
|
||||||
#[doc(cfg(feature = "vk"))]
|
#[doc(cfg(feature = "vk"))]
|
||||||
/// Shader runtime for Vulkan 1.3+.
|
/// Shader runtime for Vulkan.
|
||||||
pub mod vk {
|
pub mod vk {
|
||||||
pub use librashader_runtime_vk::{
|
pub use librashader_runtime_vk::{
|
||||||
error,
|
error,
|
||||||
|
|
Loading…
Reference in a new issue