mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-01-04 05:35:27 +01:00
Annotations return target and add OpUMod
This commit is contained in:
parent
587f1dc9f5
commit
8f17ad84ba
4 changed files with 10 additions and 5 deletions
|
|
@ -18,7 +18,8 @@ Id Module::Decorate(Id target, spv::Decoration decoration,
|
|||
op->Add(target);
|
||||
op->Add(static_cast<u32>(decoration));
|
||||
op->Add(literals);
|
||||
return AddAnnotation(std::move(op));
|
||||
AddAnnotation(std::move(op));
|
||||
return target;
|
||||
}
|
||||
|
||||
Id Module::MemberDecorate(Id structure_type, Literal member,
|
||||
|
|
@ -29,7 +30,8 @@ Id Module::MemberDecorate(Id structure_type, Literal member,
|
|||
op->Add(member);
|
||||
op->Add(static_cast<u32>(decoration));
|
||||
op->Add(literals);
|
||||
return AddAnnotation(std::move(op));
|
||||
AddAnnotation(std::move(op));
|
||||
return structure_type;
|
||||
}
|
||||
|
||||
} // namespace Sirit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue