Lines Matching full:pointer
44 Pointer<Byte> cache = task + OFFSET(VertexTask,vertexCache); in generate()
45 Pointer<Byte> vertexCache = cache + OFFSET(VertexCache,vertex); in generate()
46 Pointer<Byte> tagCache = cache + OFFSET(VertexCache,tag); in generate()
48 UInt vertexCount = *Pointer<UInt>(task + OFFSET(VertexTask,vertexCount)); in generate()
49 UInt primitiveNumber = *Pointer<UInt>(task + OFFSET(VertexTask, primitiveStart)); in generate()
52 constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData,constants)); in generate()
56 UInt index = *Pointer<UInt>(batch); in generate()
60 If(*Pointer<UInt>(tagCache + tagIndex) != indexQ) in generate()
62 *Pointer<UInt>(tagCache + tagIndex) = indexQ; in generate()
69 Pointer<Byte> cacheLine0 = vertexCache + tagIndex * UInt((int)sizeof(Vertex)); in generate()
74 Pointer<Byte> cacheLine = vertexCache + cacheIndex * UInt((int)sizeof(Vertex)); in generate()
102 Pointer<Byte> input = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData,input) + sizeof(void*) * i); in readInput()
103 UInt stride = *Pointer<UInt>(data + OFFSET(DrawData,stride) + sizeof(unsigned int) * i); in readInput()
120 …clipFlags = *Pointer<Int>(constants + OFFSET(Constants,maxX) + SignMask(maxX) * 4); // FIXME: Ar… in computeClipFlags()
121 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,maxY) + SignMask(maxY) * 4); in computeClipFlags()
122 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,maxZ) + SignMask(maxZ) * 4); in computeClipFlags()
123 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minX) + SignMask(minX) * 4); in computeClipFlags()
124 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minY) + SignMask(minY) * 4); in computeClipFlags()
125 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minZ) + SignMask(minZ) * 4); in computeClipFlags()
127 Int4 finiteX = CmpLE(Abs(o[pos].x), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
128 Int4 finiteY = CmpLE(Abs(o[pos].y), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
129 Int4 finiteZ = CmpLE(Abs(o[pos].z), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
132 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,fini) + SignMask(finiteXYZ) * 4); in computeClipFlags()
140 …Vector4f VertexRoutine::readStream(Pointer<Byte> &buffer, UInt &stride, const Stream &stream, cons… in readStream()
146 Pointer<Byte> source0 = buffer + index * stride; in readStream()
147 Pointer<Byte> source1 = source0 + (!textureSampling ? stride : 0); in readStream()
148 Pointer<Byte> source2 = source1 + (!textureSampling ? stride : 0); in readStream()
149 Pointer<Byte> source3 = source2 + (!textureSampling ? stride : 0); in readStream()
165 v.x.x = *Pointer<Float>(source0); in readStream()
166 v.x.y = *Pointer<Float>(source1); in readStream()
167 v.x.z = *Pointer<Float>(source2); in readStream()
168 v.x.w = *Pointer<Float>(source3); in readStream()
172 v.x = *Pointer<Float4>(source0); in readStream()
173 v.y = *Pointer<Float4>(source1); in readStream()
174 v.z = *Pointer<Float4>(source2); in readStream()
175 v.w = *Pointer<Float4>(source3); in readStream()
203 v.x = Float4(*Pointer<Byte4>(source0)); in readStream()
204 v.y = Float4(*Pointer<Byte4>(source1)); in readStream()
205 v.z = Float4(*Pointer<Byte4>(source2)); in readStream()
206 v.w = Float4(*Pointer<Byte4>(source3)); in readStream()
212 if(stream.count >= 1) v.x *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleByte)); in readStream()
213 if(stream.count >= 2) v.y *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleByte)); in readStream()
214 if(stream.count >= 3) v.z *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleByte)); in readStream()
215 if(stream.count >= 4) v.w *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleByte)); in readStream()
220 v.x = As<Float4>(Int4(*Pointer<Byte4>(source0))); in readStream()
221 v.y = As<Float4>(Int4(*Pointer<Byte4>(source1))); in readStream()
222 v.z = As<Float4>(Int4(*Pointer<Byte4>(source2))); in readStream()
223 v.w = As<Float4>(Int4(*Pointer<Byte4>(source3))); in readStream()
231 v.x = Float4(*Pointer<SByte4>(source0)); in readStream()
232 v.y = Float4(*Pointer<SByte4>(source1)); in readStream()
233 v.z = Float4(*Pointer<SByte4>(source2)); in readStream()
234 v.w = Float4(*Pointer<SByte4>(source3)); in readStream()
240 if(stream.count >= 1) v.x *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleSByte)); in readStream()
241 if(stream.count >= 2) v.y *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleSByte)); in readStream()
242 if(stream.count >= 3) v.z *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleSByte)); in readStream()
243 if(stream.count >= 4) v.w *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleSByte)); in readStream()
248 v.x = As<Float4>(Int4(*Pointer<SByte4>(source0))); in readStream()
249 v.y = As<Float4>(Int4(*Pointer<SByte4>(source1))); in readStream()
250 v.z = As<Float4>(Int4(*Pointer<SByte4>(source2))); in readStream()
251 v.w = As<Float4>(Int4(*Pointer<SByte4>(source3))); in readStream()
258 …v.x = Float4(*Pointer<Byte4>(source0)) * *Pointer<Float4>(constants + OFFSET(Constants,unscaleByte… in readStream()
259 …v.y = Float4(*Pointer<Byte4>(source1)) * *Pointer<Float4>(constants + OFFSET(Constants,unscaleByte… in readStream()
260 …v.z = Float4(*Pointer<Byte4>(source2)) * *Pointer<Float4>(constants + OFFSET(Constants,unscaleByte… in readStream()
261 …v.w = Float4(*Pointer<Byte4>(source3)) * *Pointer<Float4>(constants + OFFSET(Constants,unscaleByte… in readStream()
274 v.x = Float4(*Pointer<Short4>(source0)); in readStream()
275 v.y = Float4(*Pointer<Short4>(source1)); in readStream()
276 v.z = Float4(*Pointer<Short4>(source2)); in readStream()
277 v.w = Float4(*Pointer<Short4>(source3)); in readStream()
283 if(stream.count >= 1) v.x *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleShort)); in readStream()
284 if(stream.count >= 2) v.y *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleShort)); in readStream()
285 if(stream.count >= 3) v.z *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleShort)); in readStream()
286 if(stream.count >= 4) v.w *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleShort)); in readStream()
291 v.x = As<Float4>(Int4(*Pointer<Short4>(source0))); in readStream()
292 v.y = As<Float4>(Int4(*Pointer<Short4>(source1))); in readStream()
293 v.z = As<Float4>(Int4(*Pointer<Short4>(source2))); in readStream()
294 v.w = As<Float4>(Int4(*Pointer<Short4>(source3))); in readStream()
302 v.x = Float4(*Pointer<UShort4>(source0)); in readStream()
303 v.y = Float4(*Pointer<UShort4>(source1)); in readStream()
304 v.z = Float4(*Pointer<UShort4>(source2)); in readStream()
305 v.w = Float4(*Pointer<UShort4>(source3)); in readStream()
311 if(stream.count >= 1) v.x *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleUShort)); in readStream()
312 if(stream.count >= 2) v.y *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleUShort)); in readStream()
313 if(stream.count >= 3) v.z *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleUShort)); in readStream()
314 if(stream.count >= 4) v.w *= *Pointer<Float4>(constants + OFFSET(Constants,unscaleUShort)); in readStream()
319 v.x = As<Float4>(Int4(*Pointer<UShort4>(source0))); in readStream()
320 v.y = As<Float4>(Int4(*Pointer<UShort4>(source1))); in readStream()
321 v.z = As<Float4>(Int4(*Pointer<UShort4>(source2))); in readStream()
322 v.w = As<Float4>(Int4(*Pointer<UShort4>(source3))); in readStream()
330 v.x = Float4(*Pointer<Int4>(source0)); in readStream()
331 v.y = Float4(*Pointer<Int4>(source1)); in readStream()
332 v.z = Float4(*Pointer<Int4>(source2)); in readStream()
333 v.w = Float4(*Pointer<Int4>(source3)); in readStream()
339 if(stream.count >= 1) v.x *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleInt)); in readStream()
340 if(stream.count >= 2) v.y *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleInt)); in readStream()
341 if(stream.count >= 3) v.z *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleInt)); in readStream()
342 if(stream.count >= 4) v.w *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleInt)); in readStream()
347 v.x = *Pointer<Float4>(source0); in readStream()
348 v.y = *Pointer<Float4>(source1); in readStream()
349 v.z = *Pointer<Float4>(source2); in readStream()
350 v.w = *Pointer<Float4>(source3); in readStream()
358 v.x = Float4(*Pointer<UInt4>(source0)); in readStream()
359 v.y = Float4(*Pointer<UInt4>(source1)); in readStream()
360 v.z = Float4(*Pointer<UInt4>(source2)); in readStream()
361 v.w = Float4(*Pointer<UInt4>(source3)); in readStream()
367 if(stream.count >= 1) v.x *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleUInt)); in readStream()
368 if(stream.count >= 2) v.y *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleUInt)); in readStream()
369 if(stream.count >= 3) v.z *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleUInt)); in readStream()
370 if(stream.count >= 4) v.w *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleUInt)); in readStream()
375 v.x = *Pointer<Float4>(source0); in readStream()
376 v.y = *Pointer<Float4>(source1); in readStream()
377 v.z = *Pointer<Float4>(source2); in readStream()
378 v.w = *Pointer<Float4>(source3); in readStream()
389 x = y = z = *Pointer<Int>(source0); in readStream()
399 x = y = z = *Pointer<Int>(source1); in readStream()
409 x = y = z = *Pointer<Int>(source2); in readStream()
419 x = y = z = *Pointer<Int>(source3); in readStream()
438 x = y = z = *Pointer<Int>(source0); in readStream()
448 x = y = z = *Pointer<Int>(source1); in readStream()
458 x = y = z = *Pointer<Int>(source2); in readStream()
468 x = y = z = *Pointer<Int>(source3); in readStream()
484 …v.x = Float4(*Pointer<Int4>(source0)) * *Pointer<Float4>(constants + OFFSET(Constants,unscaleFixed… in readStream()
485 …v.y = Float4(*Pointer<Int4>(source1)) * *Pointer<Float4>(constants + OFFSET(Constants,unscaleFixed… in readStream()
486 …v.z = Float4(*Pointer<Int4>(source2)) * *Pointer<Float4>(constants + OFFSET(Constants,unscaleFixed… in readStream()
487 …v.w = Float4(*Pointer<Int4>(source3)) * *Pointer<Float4>(constants + OFFSET(Constants,unscaleFixed… in readStream()
496 UShort x0 = *Pointer<UShort>(source0 + 0); in readStream()
497 UShort x1 = *Pointer<UShort>(source1 + 0); in readStream()
498 UShort x2 = *Pointer<UShort>(source2 + 0); in readStream()
499 UShort x3 = *Pointer<UShort>(source3 + 0); in readStream()
501 v.x.x = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(x0) * 4); in readStream()
502 v.x.y = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(x1) * 4); in readStream()
503 v.x.z = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(x2) * 4); in readStream()
504 v.x.w = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(x3) * 4); in readStream()
509 UShort y0 = *Pointer<UShort>(source0 + 2); in readStream()
510 UShort y1 = *Pointer<UShort>(source1 + 2); in readStream()
511 UShort y2 = *Pointer<UShort>(source2 + 2); in readStream()
512 UShort y3 = *Pointer<UShort>(source3 + 2); in readStream()
514 v.y.x = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(y0) * 4); in readStream()
515 v.y.y = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(y1) * 4); in readStream()
516 v.y.z = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(y2) * 4); in readStream()
517 v.y.w = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(y3) * 4); in readStream()
522 UShort z0 = *Pointer<UShort>(source0 + 4); in readStream()
523 UShort z1 = *Pointer<UShort>(source1 + 4); in readStream()
524 UShort z2 = *Pointer<UShort>(source2 + 4); in readStream()
525 UShort z3 = *Pointer<UShort>(source3 + 4); in readStream()
527 v.z.x = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(z0) * 4); in readStream()
528 v.z.y = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(z1) * 4); in readStream()
529 v.z.z = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(z2) * 4); in readStream()
530 v.z.w = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(z3) * 4); in readStream()
535 UShort w0 = *Pointer<UShort>(source0 + 6); in readStream()
536 UShort w1 = *Pointer<UShort>(source1 + 6); in readStream()
537 UShort w2 = *Pointer<UShort>(source2 + 6); in readStream()
538 UShort w3 = *Pointer<UShort>(source3 + 6); in readStream()
540 v.w.x = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(w0) * 4); in readStream()
541 v.w.y = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(w1) * 4); in readStream()
542 v.w.z = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(w2) * 4); in readStream()
543 v.w.w = *Pointer<Float>(constants + OFFSET(Constants,half2float) + Int(w3) * 4); in readStream()
549 v.x.x = *Pointer<Float>(source0); in readStream()
550 v.x.y = *Pointer<Float>(source1); in readStream()
551 v.x.z = *Pointer<Float>(source2); in readStream()
552 v.x.w = *Pointer<Float>(source3); in readStream()
558 src = Insert(src, *Pointer<Int>(source0), 0); in readStream()
559 src = Insert(src, *Pointer<Int>(source1), 1); in readStream()
560 src = Insert(src, *Pointer<Int>(source2), 2); in readStream()
561 src = Insert(src, *Pointer<Int>(source3), 3); in readStream()
580 src = Insert(src, *Pointer<Int>(source0), 0); in readStream()
581 src = Insert(src, *Pointer<Int>(source1), 1); in readStream()
582 src = Insert(src, *Pointer<Int>(source2), 2); in readStream()
583 src = Insert(src, *Pointer<Int>(source3), 3); in readStream()
620 Float4 W = *Pointer<Float4>(data + OFFSET(DrawData,Wx16)) * Float4(1.0f / 16.0f); in postTransform()
621 Float4 H = *Pointer<Float4>(data + OFFSET(DrawData,Hx16)) * Float4(1.0f / 16.0f); in postTransform()
622 Float4 L = *Pointer<Float4>(data + OFFSET(DrawData,X0x16)) * Float4(1.0f / 16.0f); in postTransform()
623 Float4 T = *Pointer<Float4>(data + OFFSET(DrawData,Y0x16)) * Float4(1.0f / 16.0f); in postTransform()
633 o[pos].x = o[pos].x + *Pointer<Float4>(data + OFFSET(DrawData,halfPixelX)) * o[pos].w; in postTransform()
634 o[pos].y = o[pos].y + *Pointer<Float4>(data + OFFSET(DrawData,halfPixelY)) * o[pos].w; in postTransform()
639 o[pos].x = o[pos].x + *Pointer<Float4>(data + OFFSET(DrawData,XXXX)) * o[pos].w; in postTransform()
640 o[pos].y = o[pos].y + *Pointer<Float4>(data + OFFSET(DrawData,YYYY)) * o[pos].w; in postTransform()
644 void VertexRoutine::writeCache(Pointer<Byte> &cacheLine) in writeCache()
683 *Pointer<Float>(cacheLine + OFFSET(Vertex,v[i]) + sizeof(Vertex) * 0) = v.x.x; in writeCache()
684 *Pointer<Float>(cacheLine + OFFSET(Vertex,v[i]) + sizeof(Vertex) * 1) = v.x.y; in writeCache()
685 *Pointer<Float>(cacheLine + OFFSET(Vertex,v[i]) + sizeof(Vertex) * 2) = v.x.z; in writeCache()
686 *Pointer<Float>(cacheLine + OFFSET(Vertex,v[i]) + sizeof(Vertex) * 3) = v.x.w; in writeCache()
699 *Pointer<Float4>(cacheLine + OFFSET(Vertex,v[i]) + sizeof(Vertex) * 0, 16) = v.x; in writeCache()
700 *Pointer<Float4>(cacheLine + OFFSET(Vertex,v[i]) + sizeof(Vertex) * 1, 16) = v.y; in writeCache()
701 *Pointer<Float4>(cacheLine + OFFSET(Vertex,v[i]) + sizeof(Vertex) * 2, 16) = v.z; in writeCache()
702 *Pointer<Float4>(cacheLine + OFFSET(Vertex,v[i]) + sizeof(Vertex) * 3, 16) = v.w; in writeCache()
707 …*Pointer<Int>(cacheLine + OFFSET(Vertex,clipFlags) + sizeof(Vertex) * 0) = (clipFlags >> 0) & 0x0… in writeCache()
708 …*Pointer<Int>(cacheLine + OFFSET(Vertex,clipFlags) + sizeof(Vertex) * 1) = (clipFlags >> 8) & 0x0… in writeCache()
709 …*Pointer<Int>(cacheLine + OFFSET(Vertex,clipFlags) + sizeof(Vertex) * 2) = (clipFlags >> 16) & 0x0… in writeCache()
710 …*Pointer<Int>(cacheLine + OFFSET(Vertex,clipFlags) + sizeof(Vertex) * 3) = (clipFlags >> 24) & 0x0… in writeCache()
728 …v.x = As<Float4>(RoundInt(*Pointer<Float4>(data + OFFSET(DrawData,X0x16)) + v.x * rhw * *Pointer<F… in writeCache()
729 …v.y = As<Float4>(RoundInt(*Pointer<Float4>(data + OFFSET(DrawData,Y0x16)) + v.y * rhw * *Pointer<F… in writeCache()
735 *Pointer<Float4>(cacheLine + OFFSET(Vertex,X) + sizeof(Vertex) * 0, 16) = v.x; in writeCache()
736 *Pointer<Float4>(cacheLine + OFFSET(Vertex,X) + sizeof(Vertex) * 1, 16) = v.y; in writeCache()
737 *Pointer<Float4>(cacheLine + OFFSET(Vertex,X) + sizeof(Vertex) * 2, 16) = v.z; in writeCache()
738 *Pointer<Float4>(cacheLine + OFFSET(Vertex,X) + sizeof(Vertex) * 3, 16) = v.w; in writeCache()
741 void VertexRoutine::writeVertex(const Pointer<Byte> &vertex, Pointer<Byte> &cache) in writeVertex()
747 …*Pointer<Int4>(vertex + OFFSET(Vertex,v[i]), 16) = *Pointer<Int4>(cache + OFFSET(Vertex,v[i]), 16); in writeVertex()
751 *Pointer<Int4>(vertex + OFFSET(Vertex,X)) = *Pointer<Int4>(cache + OFFSET(Vertex,X)); in writeVertex()
752 …*Pointer<Int>(vertex + OFFSET(Vertex,clipFlags)) = *Pointer<Int>(cache + OFFSET(Vertex,clipFlags)); in writeVertex()
755 …void VertexRoutine::transformFeedback(const Pointer<Byte> &vertex, const UInt &primitiveNumber, co… in transformFeedback()
765 UInt reg = *Pointer<UInt>(data + OFFSET(DrawData, vs.reg[i])); in transformFeedback()
766 UInt row = *Pointer<UInt>(data + OFFSET(DrawData, vs.row[i])); in transformFeedback()
767 UInt col = *Pointer<UInt>(data + OFFSET(DrawData, vs.col[i])); in transformFeedback()
768 UInt str = *Pointer<UInt>(data + OFFSET(DrawData, vs.str[i])); in transformFeedback()
770 …Pointer<Byte> t = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, vs.t[i])) + (tOffset * str * siz… in transformFeedback()
771 Pointer<Byte> v = vertex + OFFSET(Vertex, v) + reg * sizeof(float); in transformFeedback()
781 *Pointer<Float>(t + rOffsetX + cOffset) = *Pointer<Float>(v + rOffset4 + cOffset); in transformFeedback()