Lines Matching full:pointer
43 Pointer<Byte> cache = task + OFFSET(VertexTask, vertexCache); in generate()
44 Pointer<Byte> vertexCache = cache + OFFSET(VertexCache, vertex); in generate()
45 Pointer<UInt> tagCache = Pointer<UInt>(cache + OFFSET(VertexCache, tag)); in generate()
47 UInt vertexCount = *Pointer<UInt>(task + OFFSET(VertexTask, vertexCount)); in generate()
49 constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, constants)); in generate()
70 Pointer<Byte> cacheEntry = vertexCache + cacheIndex * UInt((int)sizeof(Vertex)); in generate()
79 batch = Pointer<UInt>(Pointer<Byte>(batch) + sizeof(uint32_t)); in generate()
87 void VertexRoutine::readInput(Pointer<UInt> &batch) in readInput()
96 …Pointer<Byte> input = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, input) + sizeof(void *) * (i… in readInput()
97 UInt stride = *Pointer<UInt>(data + OFFSET(DrawData, stride) + sizeof(uint32_t) * (i / 4)); in readInput()
98 Int baseVertex = *Pointer<Int>(data + OFFSET(DrawData, baseVertex)); in readInput()
102 …robustnessSize = *Pointer<UInt>(data + OFFSET(DrawData, robustnessSize) + sizeof(uint32_t) * (i / … in readInput()
133 clipFlags = Pointer<Int>(constants + OFFSET(Constants, maxX))[SignMask(maxX)]; in computeClipFlags()
134 clipFlags |= Pointer<Int>(constants + OFFSET(Constants, maxY))[SignMask(maxY)]; in computeClipFlags()
135 clipFlags |= Pointer<Int>(constants + OFFSET(Constants, maxZ))[SignMask(maxZ)]; in computeClipFlags()
136 clipFlags |= Pointer<Int>(constants + OFFSET(Constants, minX))[SignMask(minX)]; in computeClipFlags()
137 clipFlags |= Pointer<Int>(constants + OFFSET(Constants, minY))[SignMask(minY)]; in computeClipFlags()
138 clipFlags |= Pointer<Int>(constants + OFFSET(Constants, minZ))[SignMask(minZ)]; in computeClipFlags()
146 clipFlags |= Pointer<Int>(constants + OFFSET(Constants, fini))[SignMask(finiteXYZ)]; in computeClipFlags()
167 Vector4f VertexRoutine::readStream(Pointer<Byte> &buffer, UInt &stride, const Stream &stream, Point… in readStream()
176 …UInt4 offsets = (*Pointer<UInt4>(As<Pointer<UInt4>>(batch)) + As<UInt4>(Int4(baseVertex))) * UInt4… in readStream()
178 Pointer<Byte> source0 = buffer + offsets.x; in readStream()
179 Pointer<Byte> source1 = buffer + offsets.y; in readStream()
180 Pointer<Byte> source2 = buffer + offsets.z; in readStream()
181 Pointer<Byte> source3 = buffer + offsets.w; in readStream()
190 Pointer<Byte> zeroSource = As<Pointer<Byte>>(&zero); in readStream()
217 v.x.x = *Pointer<Float>(source0); in readStream()
218 v.x.y = *Pointer<Float>(source1); in readStream()
219 v.x.z = *Pointer<Float>(source2); in readStream()
220 v.x.w = *Pointer<Float>(source3); in readStream()
224 v.x = *Pointer<Float4>(source0); in readStream()
225 v.y = *Pointer<Float4>(source1); in readStream()
226 v.z = *Pointer<Float4>(source2); in readStream()
227 v.w = *Pointer<Float4>(source3); in readStream()
241 v.x = Float4(*Pointer<Byte4>(source0)); in readStream()
242 v.y = Float4(*Pointer<Byte4>(source1)); in readStream()
243 v.z = Float4(*Pointer<Byte4>(source2)); in readStream()
244 v.w = Float4(*Pointer<Byte4>(source3)); in readStream()
248 if(componentCount >= 1) v.x *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleByte)); in readStream()
249 if(componentCount >= 2) v.y *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleByte)); in readStream()
250 if(componentCount >= 3) v.z *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleByte)); in readStream()
251 if(componentCount >= 4) v.w *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleByte)); in readStream()
257 v.x = As<Float4>(Int4(*Pointer<Byte4>(source0))); in readStream()
258 v.y = As<Float4>(Int4(*Pointer<Byte4>(source1))); in readStream()
259 v.z = As<Float4>(Int4(*Pointer<Byte4>(source2))); in readStream()
260 v.w = As<Float4>(Int4(*Pointer<Byte4>(source3))); in readStream()
268 v.x = Float4(*Pointer<SByte4>(source0)); in readStream()
269 v.y = Float4(*Pointer<SByte4>(source1)); in readStream()
270 v.z = Float4(*Pointer<SByte4>(source2)); in readStream()
271 v.w = Float4(*Pointer<SByte4>(source3)); in readStream()
275 …if(componentCount >= 1) v.x = Max(v.x * *Pointer<Float4>(constants + OFFSET(Constants, unscaleSByt… in readStream()
276 …if(componentCount >= 2) v.y = Max(v.y * *Pointer<Float4>(constants + OFFSET(Constants, unscaleSByt… in readStream()
277 …if(componentCount >= 3) v.z = Max(v.z * *Pointer<Float4>(constants + OFFSET(Constants, unscaleSByt… in readStream()
278 …if(componentCount >= 4) v.w = Max(v.w * *Pointer<Float4>(constants + OFFSET(Constants, unscaleSByt… in readStream()
284 v.x = As<Float4>(Int4(*Pointer<SByte4>(source0))); in readStream()
285 v.y = As<Float4>(Int4(*Pointer<SByte4>(source1))); in readStream()
286 v.z = As<Float4>(Int4(*Pointer<SByte4>(source2))); in readStream()
287 v.w = As<Float4>(Int4(*Pointer<SByte4>(source3))); in readStream()
294 v.x = Float4(*Pointer<Short4>(source0)); in readStream()
295 v.y = Float4(*Pointer<Short4>(source1)); in readStream()
296 v.z = Float4(*Pointer<Short4>(source2)); in readStream()
297 v.w = Float4(*Pointer<Short4>(source3)); in readStream()
301 …if(componentCount >= 1) v.x = Max(v.x * *Pointer<Float4>(constants + OFFSET(Constants, unscaleShor… in readStream()
302 …if(componentCount >= 2) v.y = Max(v.y * *Pointer<Float4>(constants + OFFSET(Constants, unscaleShor… in readStream()
303 …if(componentCount >= 3) v.z = Max(v.z * *Pointer<Float4>(constants + OFFSET(Constants, unscaleShor… in readStream()
304 …if(componentCount >= 4) v.w = Max(v.w * *Pointer<Float4>(constants + OFFSET(Constants, unscaleShor… in readStream()
309 v.x = As<Float4>(Int4(*Pointer<Short4>(source0))); in readStream()
310 v.y = As<Float4>(Int4(*Pointer<Short4>(source1))); in readStream()
311 v.z = As<Float4>(Int4(*Pointer<Short4>(source2))); in readStream()
312 v.w = As<Float4>(Int4(*Pointer<Short4>(source3))); in readStream()
319 v.x = Float4(*Pointer<UShort4>(source0)); in readStream()
320 v.y = Float4(*Pointer<UShort4>(source1)); in readStream()
321 v.z = Float4(*Pointer<UShort4>(source2)); in readStream()
322 v.w = Float4(*Pointer<UShort4>(source3)); in readStream()
326 if(componentCount >= 1) v.x *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleUShort)); in readStream()
327 if(componentCount >= 2) v.y *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleUShort)); in readStream()
328 if(componentCount >= 3) v.z *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleUShort)); in readStream()
329 if(componentCount >= 4) v.w *= *Pointer<Float4>(constants + OFFSET(Constants, unscaleUShort)); in readStream()
334 v.x = As<Float4>(Int4(*Pointer<UShort4>(source0))); in readStream()
335 v.y = As<Float4>(Int4(*Pointer<UShort4>(source1))); in readStream()
336 v.z = As<Float4>(Int4(*Pointer<UShort4>(source2))); in readStream()
337 v.w = As<Float4>(Int4(*Pointer<UShort4>(source3))); in readStream()
345 v.x = *Pointer<Float4>(source0); in readStream()
346 v.y = *Pointer<Float4>(source1); in readStream()
347 v.z = *Pointer<Float4>(source2); in readStream()
348 v.w = *Pointer<Float4>(source3); in readStream()
356 v.x = *Pointer<Float4>(source0); in readStream()
357 v.y = *Pointer<Float4>(source1); in readStream()
358 v.z = *Pointer<Float4>(source2); in readStream()
359 v.w = *Pointer<Float4>(source3); in readStream()
369 UShort x0 = *Pointer<UShort>(source0 + 0); in readStream()
370 UShort x1 = *Pointer<UShort>(source1 + 0); in readStream()
371 UShort x2 = *Pointer<UShort>(source2 + 0); in readStream()
372 UShort x3 = *Pointer<UShort>(source3 + 0); in readStream()
374 v.x.x = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(x0) * 4); in readStream()
375 v.x.y = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(x1) * 4); in readStream()
376 v.x.z = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(x2) * 4); in readStream()
377 v.x.w = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(x3) * 4); in readStream()
382 UShort y0 = *Pointer<UShort>(source0 + 2); in readStream()
383 UShort y1 = *Pointer<UShort>(source1 + 2); in readStream()
384 UShort y2 = *Pointer<UShort>(source2 + 2); in readStream()
385 UShort y3 = *Pointer<UShort>(source3 + 2); in readStream()
387 v.y.x = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(y0) * 4); in readStream()
388 v.y.y = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(y1) * 4); in readStream()
389 v.y.z = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(y2) * 4); in readStream()
390 v.y.w = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(y3) * 4); in readStream()
395 UShort z0 = *Pointer<UShort>(source0 + 4); in readStream()
396 UShort z1 = *Pointer<UShort>(source1 + 4); in readStream()
397 UShort z2 = *Pointer<UShort>(source2 + 4); in readStream()
398 UShort z3 = *Pointer<UShort>(source3 + 4); in readStream()
400 v.z.x = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(z0) * 4); in readStream()
401 v.z.y = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(z1) * 4); in readStream()
402 v.z.z = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(z2) * 4); in readStream()
403 v.z.w = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(z3) * 4); in readStream()
408 UShort w0 = *Pointer<UShort>(source0 + 6); in readStream()
409 UShort w1 = *Pointer<UShort>(source1 + 6); in readStream()
410 UShort w2 = *Pointer<UShort>(source2 + 6); in readStream()
411 UShort w3 = *Pointer<UShort>(source3 + 6); in readStream()
413 v.w.x = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(w0) * 4); in readStream()
414 v.w.y = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(w1) * 4); in readStream()
415 v.w.z = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(w2) * 4); in readStream()
416 v.w.w = *Pointer<Float>(constants + OFFSET(Constants, half2float) + Int(w3) * 4); in readStream()
426 src = Insert(src, *Pointer<Int>(source0), 0); in readStream()
427 src = Insert(src, *Pointer<Int>(source1), 1); in readStream()
428 src = Insert(src, *Pointer<Int>(source2), 2); in readStream()
429 src = Insert(src, *Pointer<Int>(source3), 3); in readStream()
447 src = Insert(src, *Pointer<Int>(source0), 0); in readStream()
448 src = Insert(src, *Pointer<Int>(source1), 1); in readStream()
449 src = Insert(src, *Pointer<Int>(source2), 2); in readStream()
450 src = Insert(src, *Pointer<Int>(source3), 3); in readStream()
463 src = Insert(src, *Pointer<Int>(source0), 0); in readStream()
464 src = Insert(src, *Pointer<Int>(source1), 1); in readStream()
465 src = Insert(src, *Pointer<Int>(source2), 2); in readStream()
466 src = Insert(src, *Pointer<Int>(source3), 3); in readStream()
485 src = Insert(src, *Pointer<Int>(source0), 0); in readStream()
486 src = Insert(src, *Pointer<Int>(source1), 1); in readStream()
487 src = Insert(src, *Pointer<Int>(source2), 2); in readStream()
488 src = Insert(src, *Pointer<Int>(source3), 3); in readStream()
516 void VertexRoutine::writeCache(Pointer<Byte> &vertexCache, Pointer<UInt> &tagCache, Pointer<UInt> &… in writeCache()
552 …proj.x = As<Float4>(RoundIntClamped(*Pointer<Float4>(data + OFFSET(DrawData, X0xF)) + pos.x * rhw … in writeCache()
553 …proj.y = As<Float4>(RoundIntClamped(*Pointer<Float4>(data + OFFSET(DrawData, Y0xF)) + pos.y * rhw … in writeCache()
559 …*Pointer<Float4>(vertexCache + sizeof(Vertex) * cacheIndex3 + OFFSET(Vertex, position), 16) = pos.… in writeCache()
560 …*Pointer<Float4>(vertexCache + sizeof(Vertex) * cacheIndex2 + OFFSET(Vertex, position), 16) = pos.… in writeCache()
561 …*Pointer<Float4>(vertexCache + sizeof(Vertex) * cacheIndex1 + OFFSET(Vertex, position), 16) = pos.… in writeCache()
562 …*Pointer<Float4>(vertexCache + sizeof(Vertex) * cacheIndex0 + OFFSET(Vertex, position), 16) = pos.… in writeCache()
564 …*Pointer<Int>(vertexCache + sizeof(Vertex) * cacheIndex3 + OFFSET(Vertex, clipFlags)) = (clipFlags… in writeCache()
565 …*Pointer<Int>(vertexCache + sizeof(Vertex) * cacheIndex2 + OFFSET(Vertex, clipFlags)) = (clipFlags… in writeCache()
566 …*Pointer<Int>(vertexCache + sizeof(Vertex) * cacheIndex1 + OFFSET(Vertex, clipFlags)) = (clipFlags… in writeCache()
567 …*Pointer<Int>(vertexCache + sizeof(Vertex) * cacheIndex0 + OFFSET(Vertex, clipFlags)) = (clipFlags… in writeCache()
571 …*Pointer<Float4>(vertexCache + sizeof(Vertex) * cacheIndex3 + OFFSET(Vertex, projected), 16) = pro… in writeCache()
572 …*Pointer<Float4>(vertexCache + sizeof(Vertex) * cacheIndex2 + OFFSET(Vertex, projected), 16) = pro… in writeCache()
573 …*Pointer<Float4>(vertexCache + sizeof(Vertex) * cacheIndex1 + OFFSET(Vertex, projected), 16) = pro… in writeCache()
574 …*Pointer<Float4>(vertexCache + sizeof(Vertex) * cacheIndex0 + OFFSET(Vertex, projected), 16) = pro… in writeCache()
583 …*Pointer<Float>(vertexCache + sizeof(Vertex) * cacheIndex3 + OFFSET(Vertex, pointSize)) = Extract(… in writeCache()
584 …*Pointer<Float>(vertexCache + sizeof(Vertex) * cacheIndex2 + OFFSET(Vertex, pointSize)) = Extract(… in writeCache()
585 …*Pointer<Float>(vertexCache + sizeof(Vertex) * cacheIndex1 + OFFSET(Vertex, pointSize)) = Extract(… in writeCache()
586 …*Pointer<Float>(vertexCache + sizeof(Vertex) * cacheIndex0 + OFFSET(Vertex, pointSize)) = Extract(… in writeCache()
596 …*Pointer<Float>(vertexCache + sizeof(Vertex) * cacheIndex3 + OFFSET(Vertex, clipDistance[i])) = Ex… in writeCache()
597 …*Pointer<Float>(vertexCache + sizeof(Vertex) * cacheIndex2 + OFFSET(Vertex, clipDistance[i])) = Ex… in writeCache()
598 …*Pointer<Float>(vertexCache + sizeof(Vertex) * cacheIndex1 + OFFSET(Vertex, clipDistance[i])) = Ex… in writeCache()
599 …*Pointer<Float>(vertexCache + sizeof(Vertex) * cacheIndex0 + OFFSET(Vertex, clipDistance[i])) = Ex… in writeCache()
610 …*Pointer<Float>(vertexCache + sizeof(Vertex) * cacheIndex3 + OFFSET(Vertex, cullDistance[i])) = Ex… in writeCache()
611 …*Pointer<Float>(vertexCache + sizeof(Vertex) * cacheIndex2 + OFFSET(Vertex, cullDistance[i])) = Ex… in writeCache()
612 …*Pointer<Float>(vertexCache + sizeof(Vertex) * cacheIndex1 + OFFSET(Vertex, cullDistance[i])) = Ex… in writeCache()
613 …*Pointer<Float>(vertexCache + sizeof(Vertex) * cacheIndex0 + OFFSET(Vertex, cullDistance[i])) = Ex… in writeCache()
617 …*Pointer<Int>(vertexCache + sizeof(Vertex) * cacheIndex3 + OFFSET(Vertex, cullMask)) = -((cullMask… in writeCache()
618 …*Pointer<Int>(vertexCache + sizeof(Vertex) * cacheIndex2 + OFFSET(Vertex, cullMask)) = -((cullMask… in writeCache()
619 …*Pointer<Int>(vertexCache + sizeof(Vertex) * cacheIndex1 + OFFSET(Vertex, cullMask)) = -((cullMask… in writeCache()
620 …*Pointer<Int>(vertexCache + sizeof(Vertex) * cacheIndex0 + OFFSET(Vertex, cullMask)) = -((cullMask… in writeCache()
637 *Pointer<Float4>(vertexCache + sizeof(Vertex) * cacheIndex3 + OFFSET(Vertex, v[i]), 16) = v.w; in writeCache()
638 *Pointer<Float4>(vertexCache + sizeof(Vertex) * cacheIndex2 + OFFSET(Vertex, v[i]), 16) = v.z; in writeCache()
639 *Pointer<Float4>(vertexCache + sizeof(Vertex) * cacheIndex1 + OFFSET(Vertex, v[i]), 16) = v.y; in writeCache()
640 *Pointer<Float4>(vertexCache + sizeof(Vertex) * cacheIndex0 + OFFSET(Vertex, v[i]), 16) = v.x; in writeCache()
645 void VertexRoutine::writeVertex(const Pointer<Byte> &vertex, Pointer<Byte> &cacheEntry) in writeVertex()
647 …*Pointer<Int4>(vertex + OFFSET(Vertex, position)) = *Pointer<Int4>(cacheEntry + OFFSET(Vertex, pos… in writeVertex()
648 …*Pointer<Int>(vertex + OFFSET(Vertex, pointSize)) = *Pointer<Int>(cacheEntry + OFFSET(Vertex, poin… in writeVertex()
650 …*Pointer<Int>(vertex + OFFSET(Vertex, clipFlags)) = *Pointer<Int>(cacheEntry + OFFSET(Vertex, clip… in writeVertex()
651 …*Pointer<Int>(vertex + OFFSET(Vertex, cullMask)) = *Pointer<Int>(cacheEntry + OFFSET(Vertex, cullM… in writeVertex()
652 …*Pointer<Int4>(vertex + OFFSET(Vertex, projected)) = *Pointer<Int4>(cacheEntry + OFFSET(Vertex, pr… in writeVertex()
658 …*Pointer<Int>(vertex + OFFSET(Vertex, v[i]), 4) = *Pointer<Int>(cacheEntry + OFFSET(Vertex, v[i]),… in writeVertex()
663 …*Pointer<Float>(vertex + OFFSET(Vertex, clipDistance[i]), 4) = *Pointer<Float>(cacheEntry + OFFSET… in writeVertex()
667 …*Pointer<Float>(vertex + OFFSET(Vertex, cullDistance[i]), 4) = *Pointer<Float>(cacheEntry + OFFSET… in writeVertex()