mirror of
https://github.com/azahar-emu/sirit.git
synced 2026-05-09 00:54:19 +02:00
Add OpConstantComposite
This commit is contained in:
@@ -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))};
|
||||
|
||||
Reference in New Issue
Block a user