Lines Matching refs:ptr
60 inline void readOrder (typename tcu::Vector<DstScalarType, 4>& dst, const int size, const void* ptr)
63 deMemcpy(aligned, ptr, size * sizeof(SrcScalarType));
72 inline void readUnormOrder (tcu::Vec4& dst, const int size, const void* ptr)
77 deMemcpy(aligned, ptr, size * sizeof(SrcScalarType));
86 inline void readSnormClamp (tcu::Vec4& dst, const int size, const void* ptr)
92 deMemcpy(aligned, ptr, size * sizeof(SrcScalarType));
101 inline void readSnormScale (tcu::Vec4& dst, const int size, const void* ptr)
107 deMemcpy(aligned, ptr, size * sizeof(SrcScalarType));
115 inline void readHalf (tcu::Vec4& dst, const int size, const void* ptr)
118 deMemcpy(aligned, ptr, size * sizeof(deUint16));
126 inline void readFixed (tcu::Vec4& dst, const int size, const void* ptr)
129 deMemcpy(aligned, ptr, size * sizeof(deInt32));
137 inline void readDouble (tcu::Vec4& dst, const int size, const void* ptr)
140 deMemcpy(aligned, ptr, size * sizeof(double));
155 inline void readUint2101010Rev (typename tcu::Vector<DstScalarType, 4>& dst, const int size, const void* ptr)
158 deMemcpy(&aligned, ptr, sizeof(deUint32));
167 inline void readInt2101010Rev (typename tcu::Vector<DstScalarType, 4>& dst, const int size, const void* ptr)
170 deMemcpy(&aligned, ptr, sizeof(deUint32));
179 inline void readUnorm2101010RevOrder (tcu::Vec4& dst, const int size, const void* ptr)
185 deMemcpy(&aligned, ptr, sizeof(deUint32));
194 inline void readSnorm2101010RevClampOrder (tcu::Vec4& dst, const int size, const void* ptr)
201 deMemcpy(&aligned, ptr, sizeof(deUint32));
210 inline void readSnorm2101010RevScaleOrder (tcu::Vec4& dst, const int size, const void* ptr)
217 deMemcpy(&aligned, ptr, sizeof(deUint32));
228 inline void read (typename tcu::Vector<DstScalarType, 4>& dst, const int size, const void* ptr)
230 readOrder<SrcScalarType, DstScalarType, NormalOrder>(dst, size, ptr);
234 inline void readUnorm (tcu::Vec4& dst, const int size, const void* ptr)
236 readUnormOrder<SrcScalarType, NormalOrder>(dst, size, ptr);
240 inline void readUnormBGRA (tcu::Vec4& dst, const int size, const void* ptr)
242 readUnormOrder<SrcScalarType, BGRAOrder>(dst, size, ptr);
245 inline void readUnorm2101010Rev (tcu::Vec4& dst, const int size, const void* ptr)
247 readUnorm2101010RevOrder<NormalOrder>(dst, size, ptr);
250 inline void readUnorm2101010RevBGRA (tcu::Vec4& dst, const int size, const void* ptr)
252 readUnorm2101010RevOrder<BGRAOrder>(dst, size, ptr);
255 inline void readSnorm2101010RevClamp (tcu::Vec4& dst, const int size, const void* ptr)
257 readSnorm2101010RevClampOrder<NormalOrder>(dst, size, ptr);
260 inline void readSnorm2101010RevClampBGRA (tcu::Vec4& dst, const int size, const void* ptr)
262 readSnorm2101010RevClampOrder<BGRAOrder>(dst, size, ptr);
265 inline void readSnorm2101010RevScale (tcu::Vec4& dst, const int size, const void* ptr)
267 readSnorm2101010RevScaleOrder<NormalOrder>(dst, size, ptr);
270 inline void readSnorm2101010RevScaleBGRA (tcu::Vec4& dst, const int size, const void* ptr)
272 readSnorm2101010RevScaleOrder<BGRAOrder>(dst, size, ptr);
277 void readFloat (tcu::Vec4& dst, const VertexAttribType type, const int size, const void* ptr)
281 case VERTEXATTRIBTYPE_FLOAT: read<float> (dst, size, ptr); break;
282 case VERTEXATTRIBTYPE_HALF: readHalf (dst, size, ptr); break;
283 case VERTEXATTRIBTYPE_FIXED: readFixed (dst, size, ptr); break;
284 case VERTEXATTRIBTYPE_DOUBLE: readDouble (dst, size, ptr); break;
285 case VERTEXATTRIBTYPE_NONPURE_UNORM8: readUnorm<deUint8> (dst, size, ptr); break;
286 case VERTEXATTRIBTYPE_NONPURE_UNORM16: readUnorm<deUint16> (dst, size, ptr); break;
287 case VERTEXATTRIBTYPE_NONPURE_UNORM32: readUnorm<deUint32> (dst, size, ptr); break;
288 case VERTEXATTRIBTYPE_NONPURE_UNORM_2_10_10_10_REV: readUnorm2101010Rev (dst, size, ptr); break;
289 case VERTEXATTRIBTYPE_NONPURE_SNORM8_CLAMP: readSnormClamp<deInt8> (dst, size, ptr); break;
290 case VERTEXATTRIBTYPE_NONPURE_SNORM16_CLAMP: readSnormClamp<deInt16> (dst, size, ptr); break;
291 case VERTEXATTRIBTYPE_NONPURE_SNORM32_CLAMP: readSnormClamp<deInt32> (dst, size, ptr); break;
292 case VERTEXATTRIBTYPE_NONPURE_SNORM_2_10_10_10_REV_CLAMP: readSnorm2101010RevClamp (dst, size, ptr); break;
293 case VERTEXATTRIBTYPE_NONPURE_SNORM8_SCALE: readSnormScale<deInt8> (dst, size, ptr); break;
294 case VERTEXATTRIBTYPE_NONPURE_SNORM16_SCALE: readSnormScale<deInt16> (dst, size, ptr); break;
295 case VERTEXATTRIBTYPE_NONPURE_SNORM32_SCALE: readSnormScale<deInt32> (dst, size, ptr); break;
296 case VERTEXATTRIBTYPE_NONPURE_SNORM_2_10_10_10_REV_SCALE: readSnorm2101010RevScale (dst, size, ptr); break;
297 case VERTEXATTRIBTYPE_NONPURE_UINT8: read<deUint8> (dst, size, ptr); break;
298 case VERTEXATTRIBTYPE_NONPURE_UINT16: read<deUint16> (dst, size, ptr); break;
299 case VERTEXATTRIBTYPE_NONPURE_UINT32: read<deUint32> (dst, size, ptr); break;
300 case VERTEXATTRIBTYPE_NONPURE_INT8: read<deInt8> (dst, size, ptr); break;
301 case VERTEXATTRIBTYPE_NONPURE_INT16: read<deInt16> (dst, size, ptr); break;
302 case VERTEXATTRIBTYPE_NONPURE_INT32: read<deInt32> (dst, size, ptr); break;
303 case VERTEXATTRIBTYPE_NONPURE_UINT_2_10_10_10_REV: readUint2101010Rev (dst, size, ptr); break;
304 case VERTEXATTRIBTYPE_NONPURE_INT_2_10_10_10_REV: readInt2101010Rev (dst, size, ptr); break;
305 case VERTEXATTRIBTYPE_NONPURE_UNORM8_BGRA: readUnormBGRA<deUint8> (dst, size, ptr); break;
306 case VERTEXATTRIBTYPE_NONPURE_UNORM_2_10_10_10_REV_BGRA: readUnorm2101010RevBGRA (dst, size, ptr); break;
307 case VERTEXATTRIBTYPE_NONPURE_SNORM_2_10_10_10_REV_CLAMP_BGRA: readSnorm2101010RevClampBGRA(dst, size, ptr); break;
308 case VERTEXATTRIBTYPE_NONPURE_SNORM_2_10_10_10_REV_SCALE_BGRA: readSnorm2101010RevScaleBGRA(dst, size, ptr); break;
324 void readInt (tcu::IVec4& dst, const VertexAttribType type, const int size, const void* ptr)
328 case VERTEXATTRIBTYPE_PURE_INT8: read<deInt8> (dst, size, ptr); break;
329 case VERTEXATTRIBTYPE_PURE_INT16: read<deInt16> (dst, size, ptr); break;
330 case VERTEXATTRIBTYPE_PURE_INT32: read<deInt32> (dst, size, ptr); break;
371 void readUint (tcu::UVec4& dst, const VertexAttribType type, const int size, const void* ptr)
375 case VERTEXATTRIBTYPE_PURE_UINT8: read<deUint8> (dst, size, ptr); break;
376 case VERTEXATTRIBTYPE_PURE_UINT16: read<deUint16> (dst, size, ptr); break;
377 case VERTEXATTRIBTYPE_PURE_UINT32: read<deUint32> (dst, size, ptr); break;