mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2025-12-24 08:16:23 +01:00
Add boolean constants
This commit is contained in:
parent
7580d729c6
commit
bf52ad2d9f
5 changed files with 34 additions and 1 deletions
|
|
@ -38,6 +38,9 @@ public:
|
|||
TypeRuntimeArray(TypeInt(32, true));
|
||||
TypeStruct({TypeInt(32, true), TypeFloat(64)});
|
||||
TypePointer(spv::StorageClass::Private, TypeFloat(16));
|
||||
ConstantTrue(TypeBool());
|
||||
ConstantTrue(TypeBool());
|
||||
ConstantFalse(TypeBool());
|
||||
|
||||
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