Lines Matching refs:swizzle
149 def __init__(self, name, precision, dataType, swizzle, inputs, outputs):
153 self.swizzle = swizzle
156 self.op = "out0 = in0.%s;" % swizzle
238 swizzle = "".join(map(lambda x: swizzleComponents[x], swizzleIndices))
239 #print "%s %s .%s" % (precision, dataType, swizzle)
240 caseName = "%s_%s_%s" % (precision, dataType, swizzle)
242 outputs = map(lambda x: x.swizzle(swizzleIndices), inputs)
244 vectorSwizzleCases.append(SwizzleCase(caseName, precision, dataType, swizzle, [("%s in0" % dataType, inputs)], [("%s out0" % outType, outputs)]))
251 # swizzle = "".join(map(lambda x: "xyzw"[x], swizzleIndices))
252 # #print "%s %s .%s" % (precision, dataType, swizzle)
253 # caseName = "%s_%s_%s" % (precision, dataType, swizzle)
255 # outputs = map(lambda x: x.swizzle(swizzleIndices), inputs)
256 # vectorSwizzleCases.append(SwizzleCase(caseName, precision, dataType, swizzle, [("in0", inputs)], [("out0", outputs)]))