vector shuffle can take constant as well as an op

This commit is contained in:
baldurk
2016-02-07 18:46:52 +01:00
parent 582622563c
commit 99af3c4b59
@@ -973,7 +973,7 @@ struct SPVInstruction
ret = StringFormat::Fmt("%s %s = ", op->type->GetName().c_str(), GetIDName().c_str());
SPVTypeData *vec1type = op->arguments[0]->op->type;
SPVTypeData *vec2type = op->arguments[1]->op->type;
SPVTypeData *vec2type = op->arguments[1]->constant ? op->arguments[1]->constant->type : op->arguments[1]->op->type;
RDCASSERT(vec1type->type == SPVTypeData::eVector && vec2type->type == SPVTypeData::eVector);