Skip to content

Commit 57f2dab

Browse files
committed
reflect: fix CurrentSubFrame being parsed as TotalSubFrames
1 parent 81840a9 commit 57f2dab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

librashader-reflect/src/reflect/semantics.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ impl MemberOffset {
249249
/// Reflection information about a non-texture related uniform variable.
250250
#[derive(Debug)]
251251
pub struct VariableMeta {
252-
// this might bite us in the back because retroarch keeps separate UBO/push offsets.. eh
253252
/// The offset of this variable uniform.
254253
pub offset: MemberOffset,
255254
/// The size of the uniform.
@@ -424,7 +423,7 @@ impl UniqueSemanticMap for FastHashMap<ShortString, UniformSemantic> {
424423
index: (),
425424
}),
426425
"CurrentSubFrame" => Some(Semantic {
427-
semantics: UniqueSemantics::TotalSubFrames,
426+
semantics: UniqueSemantics::CurrentSubFrame,
428427
index: (),
429428
}),
430429
_ => None,

0 commit comments

Comments
 (0)