Skip to content

Commit 06b6b83

Browse files
committed
update librashader to 0.6.2
1 parent 2496def commit 06b6b83

File tree

6 files changed

+46
-70
lines changed

6 files changed

+46
-70
lines changed

Cargo.lock

Lines changed: 29 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs/releases.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ language: 'en'
1111
## 0.2.2 (unreleased)
1212

1313
- Fix iterm2 image protocol.
14+
- Fix runtime error after changing to a specific retroarch shader on windows [#788](https://github.com/raphamorim/rio/issues/788) by [@chyyran](https://github.com/chyyran).
15+
- Makes editor.args and shell.args optional in config.toml [#801](https://github.com/raphamorim/rio/pull/803) by [@Nylme](https://github.com/Nylme).
1416
- Introduce `navigation.open-config-with-split`.
1517

1618
## 0.2.1

sugarloaf/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ yazi = { version = "0.2.0", optional = true }
5454
zeno = { version = "0.2.3", optional = true, default-features = false }
5555
futures = { workspace = true }
5656

57-
librashader-common = "0.5.1"
58-
librashader-presets = "0.5.1"
59-
librashader-preprocess = "0.5.1"
60-
librashader-pack = "0.5.1"
61-
librashader-reflect = { version = "0.5.1", features = ["stable", "wgsl"], default-features = false }
62-
librashader-runtime = "0.5.1"
63-
librashader-cache = "0.5.1"
57+
librashader-common = "0.6.2"
58+
librashader-presets = "0.6.2"
59+
librashader-preprocess = "0.6.2"
60+
librashader-pack = "0.6.2"
61+
librashader-reflect = { version = "0.6.2", features = ["stable", "wgsl"], default-features = false }
62+
librashader-runtime = "0.6.2"
63+
librashader-cache = "0.6.2"
6464
thiserror = "2.0.1"
6565
array-concat = "0.5.2"
6666

sugarloaf/src/components/filters/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ mod runtime;
22

33
use crate::context::Context;
44
use librashader_common::{Size, Viewport};
5+
use librashader_presets::ShaderFeatures;
56
use std::sync::Arc;
67

78
/// A brush for applying RetroArch filters.
@@ -37,6 +38,7 @@ impl FiltersBrush {
3738

3839
match crate::components::filters::runtime::FilterChain::load_from_path(
3940
path,
41+
ShaderFeatures::NONE,
4042
&ctx.device,
4143
&ctx.queue,
4244
None,

sugarloaf/src/components/filters/runtime/filter_chain.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// https://github.com/SnowflakePowered/librashader/blob/master/LICENSE.md
55

66
use librashader_common::map::FastHashMap;
7+
use librashader_presets::ShaderFeatures;
78
use librashader_presets::ShaderPreset;
89
use librashader_reflect::back::targets::WGSL;
910
use librashader_reflect::back::{CompileReflectShader, CompileShader};
@@ -97,12 +98,13 @@ impl FilterChain {
9798
/// Load the shader preset at the given path into a filter chain.
9899
pub fn load_from_path(
99100
path: impl AsRef<Path>,
101+
features: ShaderFeatures,
100102
device: &Device,
101103
queue: &wgpu::Queue,
102104
options: Option<&FilterChainOptionsWgpu>,
103105
) -> error::Result<FilterChain> {
104106
// load passes from preset
105-
let preset = ShaderPreset::try_parse(path)?;
107+
let preset = ShaderPreset::try_parse(path, features)?;
106108

107109
Self::load_from_preset(preset, device, queue, options)
108110
}

sugarloaf/src/components/filters/runtime/filter_pass.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ impl FilterPass {
252252
current_subframe: options.current_subframe,
253253
frame_direction: options.frame_direction,
254254
framebuffer_size: fb_size,
255+
aspect_ratio: options.aspect_ratio,
256+
frames_per_second: options.frames_per_second,
257+
frametime_delta: options.frametime_delta,
255258
viewport_size,
256259
},
257260
original,

0 commit comments

Comments
 (0)