mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2025-12-21 21:36:17 +01:00
Add OpConstantNull
This commit is contained in:
parent
42c456f24f
commit
a582641b99
3 changed files with 8 additions and 1 deletions
|
|
@ -40,7 +40,6 @@ public:
|
|||
ConstantTrue(TypeBool());
|
||||
ConstantTrue(TypeBool());
|
||||
ConstantFalse(TypeBool());
|
||||
Constant(TypeFloat(64), Literal(6342.2));
|
||||
Constant(TypeFloat(64), Literal(6342.21));
|
||||
Constant(TypeFloat(32), Literal(6342.21f));
|
||||
Constant(TypeFloat(16), Literal(30u));
|
||||
|
|
@ -50,6 +49,7 @@ public:
|
|||
ConstantComposite(TypeVector(TypeFloat(32), 2),
|
||||
{Constant(TypeFloat(32), Literal(50.0f)),
|
||||
Constant(TypeFloat(32), Literal(50.0f))});
|
||||
ConstantNull(TypeVector(TypeInt(64, false), 4));
|
||||
|
||||
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