aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2019-03-14 04:33:54 -0300
committerReinUsesLisp <[email protected]>2019-03-14 04:33:54 -0300
commit1869de6d752a4b332c1ee8265e5f4d13de5efcc7 (patch)
tree0d586b957036c64ab1d892c8059fb8c9ebe848ba /tests
parentf6f5913b5fa2e3cda6157e50c8cd895445ec494e (diff)
downloadsirit-1869de6d752a4b332c1ee8265e5f4d13de5efcc7.tar.gz
sirit-1869de6d752a4b332c1ee8265e5f4d13de5efcc7.zip
tests: Fix build error
Diffstat (limited to 'tests')
-rw-r--r--tests/main.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index e8c164f..6e4a92c 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -19,19 +19,19 @@ public:
AddCapability(spv::Capability::Shader);
SetMemoryModel(spv::AddressingModel::Logical, spv::MemoryModel::GLSL450);
- const auto t_void = Name(OpTypeVoid(), "void");
- const auto t_uint = Name(OpTypeInt(32, false), "uint");
- const auto t_float = Name(OpTypeFloat(32), "float");
+ const auto t_void = Name(TypeVoid(), "void");
+ const auto t_uint = Name(TypeInt(32, false), "uint");
+ const auto t_float = Name(TypeFloat(32), "float");
- const auto float4 = Name(OpTypeVector(t_float, 4), "float4");
- const auto in_float = Name(OpTypePointer(spv::StorageClass::Input, t_float), "in_float");
- const auto in_float4 = Name(OpTypePointer(spv::StorageClass::Input, float4), "in_float4");
+ const auto float4 = Name(TypeVector(t_float, 4), "float4");
+ const auto in_float = Name(TypePointer(spv::StorageClass::Input, t_float), "in_float");
+ const auto in_float4 = Name(TypePointer(spv::StorageClass::Input, float4), "in_float4");
const auto out_float4 =
- Name(OpTypePointer(spv::StorageClass::Output, float4), "out_float4");
+ Name(TypePointer(spv::StorageClass::Output, float4), "out_float4");
- const auto gl_per_vertex = Name(OpTypeStruct(float4), "gl_PerVertex");
+ const auto gl_per_vertex = Name(TypeStruct(float4), "gl_PerVertex");
const auto gl_per_vertex_ptr =
- Name(OpTypePointer(spv::StorageClass::Output, gl_per_vertex), "out_gl_PerVertex");
+ Name(TypePointer(spv::StorageClass::Output, gl_per_vertex), "out_gl_PerVertex");
const auto in_pos = Name(OpVariable(in_float4, spv::StorageClass::Input), "in_pos");
const auto per_vertex =
@@ -47,7 +47,7 @@ public:
AddGlobalVariable(per_vertex);
const auto main_func = Emit(
- Name(OpFunction(t_void, spv::FunctionControlMask::MaskNone, OpTypeFunction(t_void)),
+ Name(OpFunction(t_void, spv::FunctionControlMask::MaskNone, TypeFunction(t_void)),
"main"));
Emit(OpLabel());