mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-01-07 15:09:22 +01:00
Add OpConstantComposite
This commit is contained in:
parent
48cbe695f0
commit
765c8833c4
3 changed files with 13 additions and 0 deletions
|
|
@ -48,6 +48,9 @@ public:
|
|||
Constant(TypeInt(32, false), Literal(30u));
|
||||
Constant(TypeInt(16, false), Literal(30u));
|
||||
Constant(TypeInt(8, false), Literal(30u));
|
||||
ConstantComposite(TypeVector(TypeFloat(32), 2),
|
||||
{Constant(TypeFloat(32), Literal(50.0f)),
|
||||
Constant(TypeFloat(32), Literal(50.0f))});
|
||||
|
||||
auto main_type{TypeFunction(TypeVoid())};
|
||||
auto main_func{Emit(Function(TypeVoid(), spv::FunctionControlMask::MaskNone, main_type))};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue