reflect: fix CurrentSubFrame being parsed as TotalSubFrames

This commit is contained in:
chyyran 2024-09-17 18:26:12 -04:00 committed by Ronny Chan
parent 81840a9e9c
commit 57f2dabf0c

View file

@ -249,7 +249,6 @@ impl MemberOffset {
/// Reflection information about a non-texture related uniform variable. /// Reflection information about a non-texture related uniform variable.
#[derive(Debug)] #[derive(Debug)]
pub struct VariableMeta { pub struct VariableMeta {
// this might bite us in the back because retroarch keeps separate UBO/push offsets.. eh
/// The offset of this variable uniform. /// The offset of this variable uniform.
pub offset: MemberOffset, pub offset: MemberOffset,
/// The size of the uniform. /// The size of the uniform.
@ -424,7 +423,7 @@ impl UniqueSemanticMap for FastHashMap<ShortString, UniformSemantic> {
index: (), index: (),
}), }),
"CurrentSubFrame" => Some(Semantic { "CurrentSubFrame" => Some(Semantic {
semantics: UniqueSemantics::TotalSubFrames, semantics: UniqueSemantics::CurrentSubFrame,
index: (), index: (),
}), }),
_ => None, _ => None,