mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2025-12-26 17:26:08 +01:00
Add OpConstantComposite
This commit is contained in:
parent
48cbe695f0
commit
765c8833c4
3 changed files with 13 additions and 0 deletions
|
|
@ -24,4 +24,11 @@ const Op* Module::Constant(const Op* result_type, Operand* literal) {
|
|||
return AddDeclaration(op);
|
||||
}
|
||||
|
||||
const Op* Module::ConstantComposite(const Op* result_type,
|
||||
const std::vector<const Op*>& constituents) {
|
||||
Op* op{new Op(spv::Op::OpConstantComposite, bound, result_type)};
|
||||
op->Add(constituents);
|
||||
return AddDeclaration(op);
|
||||
}
|
||||
|
||||
} // namespace Sirit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue