From 3d0bdd0eac19ab1c2431790881fc221713e54823 Mon Sep 17 00:00:00 2001 From: chyyran Date: Fri, 27 Jan 2023 00:07:12 -0500 Subject: [PATCH] test: update slang-shaders repo --- librashader-runtime-d3d11/src/lib.rs | 2 +- .../librashader-capi-tests/dx11-example-2/code.cpp | 5 ++--- test/slang-shaders | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/librashader-runtime-d3d11/src/lib.rs b/librashader-runtime-d3d11/src/lib.rs index 58f6778..c4e6d91 100644 --- a/librashader-runtime-d3d11/src/lib.rs +++ b/librashader-runtime-d3d11/src/lib.rs @@ -33,7 +33,7 @@ mod tests { #[test] fn triangle_d3d11() { let sample = hello_triangle::d3d11_hello_triangle::Sample::new( - "../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV.slangp", + "../test/slang-shaders/crt/crt-lottes.slangp", // "../test/basic.slangp", Some(&FilterChainOptionsD3D11 { use_deferred_context: false, diff --git a/test/capi-tests/librashader-capi-tests/dx11-example-2/code.cpp b/test/capi-tests/librashader-capi-tests/dx11-example-2/code.cpp index 55cf9f1..de56acc 100644 --- a/test/capi-tests/librashader-capi-tests/dx11-example-2/code.cpp +++ b/test/capi-tests/librashader-capi-tests/dx11-example-2/code.cpp @@ -60,8 +60,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, auto libra = librashader_load_instance(); libra_shader_preset_t preset; auto error = libra.preset_create( - "../../../slang-shaders/border/gameboy-player/" - "gameboy-player-crt-royale.slangp", + "../../../slang-shaders/crt/crt-lottes.slangp", &preset); libra_d3d11_filter_chain_t filter_chain; @@ -393,7 +392,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, MSG msg; while (PeekMessageA(&msg, nullptr, 0, 0, PM_REMOVE)) { - if (msg.message == WM_KEYDOWN) return 0; + //if (msg.message == WM_KEYDOWN) return 0; DispatchMessageA(&msg); } diff --git a/test/slang-shaders b/test/slang-shaders index 9e89aaf..39fd0be 160000 --- a/test/slang-shaders +++ b/test/slang-shaders @@ -1 +1 @@ -Subproject commit 9e89aafe0f6a63645445ca8302b88e4060274c72 +Subproject commit 39fd0bef8f7615062193b829c5f5ebfaa4a56949