SPV: Generate OpArrayLength with no signedness.
This commit is contained in:
parent
d41a8dca0c
commit
e045c23a34
7 changed files with 124 additions and 140 deletions
2
SPIRV/SpvBuilder.cpp
Normal file → Executable file
2
SPIRV/SpvBuilder.cpp
Normal file → Executable file
|
|
@ -1293,7 +1293,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue