X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fmodule.cpp;h=04a37fcc3d7bd25265160b9117c5975a734a1e42;hp=5a7369147c104558f89eebf717ef87d840db3cb5;hb=cdefdb4b0f94613c2b41757fb33ae155efa9a205;hpb=0fdc229b8b43f1897de4611672ac65b4db954be0 diff --git a/source/core/module.cpp b/source/core/module.cpp index 5a736914..04a37fcc 100644 --- a/source/core/module.cpp +++ b/source/core/module.cpp @@ -38,6 +38,8 @@ enum SpirVConstants OP_ACCESS_CHAIN = 65, OP_DECORATE = 71, OP_MEMBER_DECORATE = 72, + OP_COPY_OBJECT = 83, + OP_PHI = 245, OP_SELECTION_MERGE = 247, OP_LABEL = 248, OP_BRANCH = 249, @@ -393,6 +395,26 @@ SpirVModule *SpirVModule::specialize(const map &spec_values) const } } } + else if(opcode==OP_PHI) + { + unsigned active_count = 0; + unsigned result_id = 0; + for(unsigned i=3; i