SPV: The result type of OpArrayLength should be UINT

This commit is contained in:
Rex Xu
2018-03-02 17:09:23 +08:00
parent b5b5f918c6
commit e518772dc9
470 changed files with 590 additions and 589 deletions

View File

@@ -1178,7 +1178,7 @@ Id Builder::createAccessChain(StorageClass storageClass, Id base, const std::vec
Id Builder::createArrayLength(Id base, unsigned int member)
{
spv::Id intType = makeIntType(32);
spv::Id intType = makeUintType(32);
Instruction* length = new Instruction(getUniqueId(), intType, OpArrayLength);
length->addIdOperand(base);
length->addImmediateOperand(member);