Lines Matching defs:swizzle
1399 // lvalue cannot simply be read and written via a pointer (e.g. a swizzle). Need to
1812 Swizzle& swizzle = (Swizzle&) expr;
1813 size_t count = swizzle.fComponents.size();
1814 SpvId base = this->getLValue(*swizzle.fBase, out)->getPointer();
1817 IntLiteral index(fContext, Position(), swizzle.fComponents[0]);
1820 this->getPointerType(swizzle.fType,
1821 get_storage_class(*swizzle.fBase)),
1834 swizzle.fComponents,
1835 swizzle.fBase->fType,
1931 SpvId SPIRVCodeGenerator::writeSwizzle(const Swizzle& swizzle, SkWStream& out) {
1932 SpvId base = this->writeExpression(*swizzle.fBase, out);
1934 size_t count = swizzle.fComponents.size();
1936 this->writeInstruction(SpvOpCompositeExtract, this->getType(swizzle.fType), result, base,
1937 swizzle.fComponents[0], out);
1940 this->writeWord(this->getType(swizzle.fType), out);
1944 for (int component : swizzle.fComponents) {