From 765c8833c49279ec7303f32cf3fd095831554466 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Mon, 27 Aug 2018 00:38:25 -0300 Subject: Add OpConstantComposite --- tests/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/main.cpp b/tests/main.cpp index 7a3236b..2f60422 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -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))}; -- cgit v1.2.3