mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-01-05 14:09:09 +01:00
OpName returns its target
This commit is contained in:
parent
4fe98c2902
commit
45555c0e57
3 changed files with 6 additions and 5 deletions
|
|
@ -9,11 +9,12 @@
|
|||
|
||||
namespace Sirit {
|
||||
|
||||
void Module::Name(Ref target, const std::string& name) {
|
||||
Ref Module::Name(Ref target, const std::string& name) {
|
||||
Op* op{new Op(spv::Op::OpName)};
|
||||
op->Add(target);
|
||||
op->Add(name);
|
||||
debug.push_back(std::unique_ptr<Op>(op));
|
||||
return target;
|
||||
}
|
||||
|
||||
} // namespace Sirit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue