RSX dependency

This commit is contained in:
2026-01-25 20:40:24 +01:00
parent 229353f5f0
commit eb702dce45
2 changed files with 7 additions and 3 deletions
+4
View File
@@ -17,6 +17,8 @@ macro_rules! rsx {
macro_rules! rsx_scope {
($rsx:expr, for $(%$($dep:ident $(as $dp:pat,)?),+)? ($p:pat in $v:expr) {$($inner:tt)*} $($rest:tt)*) => {
{
$($($crate::rsx_dep!($dep);)+)?
$rsx.dynamic_scope({
$($($crate::rsx_dep!($dep $(as $dp)?);)+)?
move |scope| {
@@ -32,6 +34,8 @@ macro_rules! rsx_scope {
($rsx:expr, if $(%$($dep:ident $(as $dp:pat,)?),+)? ($st:expr) {$($inner:tt)*} $($rest:tt)*) => {
{
$($($crate::rsx_dep!($dep);)+)?
$rsx.dynamic_scope({
$($($crate::rsx_dep!($dep $(as $dp)?);)+)?
move |scope| {