From 57f2dabf0c9fcd7b2e0d5b467b25a4c7f0cd0d78 Mon Sep 17 00:00:00 2001 From: chyyran Date: Tue, 17 Sep 2024 18:26:12 -0400 Subject: [PATCH] reflect: fix `CurrentSubFrame` being parsed as `TotalSubFrames` --- librashader-reflect/src/reflect/semantics.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/librashader-reflect/src/reflect/semantics.rs b/librashader-reflect/src/reflect/semantics.rs index 8e84b43..b4dbbdc 100644 --- a/librashader-reflect/src/reflect/semantics.rs +++ b/librashader-reflect/src/reflect/semantics.rs @@ -249,7 +249,6 @@ impl MemberOffset { /// Reflection information about a non-texture related uniform variable. #[derive(Debug)] pub struct VariableMeta { - // this might bite us in the back because retroarch keeps separate UBO/push offsets.. eh /// The offset of this variable uniform. pub offset: MemberOffset, /// The size of the uniform. @@ -424,7 +423,7 @@ impl UniqueSemanticMap for FastHashMap { index: (), }), "CurrentSubFrame" => Some(Semantic { - semantics: UniqueSemantics::TotalSubFrames, + semantics: UniqueSemantics::CurrentSubFrame, index: (), }), _ => None,