Lines Matching defs:length
2531 // Currently, the front-end does not allow .length() on an array until it is sized,
2536 // Normal .length() would have been constant folded by the front-end.
2537 // So, this has to be block.lastMember.length().
2540 spv::Id length;
2546 length = builder.createCooperativeMatrixLengthKHR(typeId);
2549 length = builder.createCooperativeMatrixLengthNV(typeId);
2556 length = builder.createArrayLength(builder.accessChainGetLValue(), member);
2559 // GLSL semantics say the result of .length() is an int, while SPIR-V says
2564 length = builder.createBinOp(spv::OpIAdd, builder.makeIntType(32), length, builder.makeIntConstant(0));
2566 length = builder.createUnaryOp(spv::OpBitcast, builder.makeIntType(32), length);
2571 builder.setAccessChainRValue(length);