aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2018-08-26 15:48:10 -0300
committerReinUsesLisp <[email protected]>2018-08-26 15:48:10 -0300
commit3adb45138bf352e3cb3d0e1b526a5100a78a6777 (patch)
tree1dc762877a7d7f069c9dec5d13c50077e2934fa2 /tests
parent131dbd053c445224530d9d7942755e6f69baf655 (diff)
downloadsirit-3adb45138bf352e3cb3d0e1b526a5100a78a6777.tar.gz
sirit-3adb45138bf352e3cb3d0e1b526a5100a78a6777.zip
Add more types
Diffstat (limited to 'tests')
-rw-r--r--tests/main.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index e0a7de0..b801239 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -28,13 +28,16 @@ public:
TypeFloat(64);
TypeVector(TypeBool(), 4);
TypeVector(TypeBool(), 3);
- TypeVector(TypeVector(TypeFloat(32), 4), 3);
- TypeVector(TypeVector(TypeFloat(32), 4), 3);
TypeMatrix(TypeVector(TypeFloat(32), 4), 4);
TypeImage(TypeFloat(32), spv::Dim::Dim2D, 0, false, false, 0,
- spv::ImageFormat::Rg32f, spv::AccessQualifier::ReadOnly);
+ spv::ImageFormat::Rg32f);
TypeSampledImage(TypeImage(TypeFloat(32), spv::Dim::Rect, 0, false, false, 0,
- spv::ImageFormat::Rg32f, spv::AccessQualifier::ReadOnly));
+ spv::ImageFormat::Rg32f));
+ TypeVector(TypeInt(32, true), 4);
+ TypeVector(TypeInt(64, true), 4);
+ TypeRuntimeArray(TypeInt(32, true));
+ TypeStruct({TypeInt(32, true), TypeFloat(64)});
+ TypePointer(spv::StorageClass::Private, TypeFloat(16));
auto main_type{TypeFunction(TypeVoid())};
auto main_func{Emit(Function(TypeVoid(), spv::FunctionControlMask::MaskNone, main_type))};