Skip to content

Commit f214561

Browse files
authored
Fix spec_id not being set
1 parent 8a96256 commit f214561

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spirv_reflect.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,6 +1607,8 @@ static SpvReflectResult ParseDecorations(SpvReflectPrvParser* p_parser, SpvRefle
16071607
} break;
16081608

16091609
case SpvDecorationSpecId: {
1610+
uint32_t word_offset = p_node->word_offset + member_offset + 3;
1611+
CHECKED_READU32(p_parser, word_offset, p_target_decorations->spec_id);
16101612
spec_constant_count++;
16111613
} break;
16121614

0 commit comments

Comments
 (0)