Lines Matching defs:dst

89 inline void writeUint24 (deUint8* dst, deUint32 val)
92 dst[0] = (deUint8)((val & 0x0000FFu) >> 0u);
93 dst[1] = (deUint8)((val & 0x00FF00u) >> 8u);
94 dst[2] = (deUint8)((val & 0xFF0000u) >> 16u);
96 dst[0] = (deUint8)((val & 0xFF0000u) >> 16u);
97 dst[1] = (deUint8)((val & 0x00FF00u) >> 8u);
98 dst[2] = (deUint8)((val & 0x0000FFu) >> 0u);
137 inline void writeUint32Low8 (deUint8* dst, deUint8 val)
145 dst[uint32ByteOffsetBits0To8] = val;
148 inline void writeUint32High8 (deUint8* dst, deUint8 val)
156 dst[uint32ByteOffsetBits24To32] = val;
170 inline void writeUint32High16 (deUint8* dst, deUint16 val)
178 *(deUint16*)(dst + uint32ByteOffset16To32) = val;
203 inline void writeUint32Low24 (deUint8* dst, deUint32 val)
211 writeUint24(dst + uint32ByteOffset0To24, val);
214 inline void writeUint32High24 (deUint8* dst, deUint32 val)
222 writeUint24(dst + uint32ByteOffset8To32, val);
395 void floatToChannel (deUint8* dst, float src, TextureFormat::ChannelType type)
402 case TextureFormat::SNORM_INT8: *((deInt8*)dst) = convertSatRte<deInt8> (src * 127.0f); break;
403 case TextureFormat::SNORM_INT16: *((deInt16*)dst) = convertSatRte<deInt16> (src * 32767.0f); break;
404 case TextureFormat::SNORM_INT32: *((deInt32*)dst) = convertSatRte<deInt32> (src * 2147483647.0f); break;
405 case TextureFormat::UNORM_INT8: *((deUint8*)dst) = convertSatRte<deUint8> (src * 255.0f); break;
406 case TextureFormat::UNORM_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src * 65535.0f); break;
407 case TextureFormat::UNORM_INT24: writeUint24(dst, convertSatRteUint24 (src * 16777215.0f)); break;
408 case TextureFormat::UNORM_INT32: *((deUint32*)dst) = convertSatRte<deUint32> (src * 4294967295.0f); break;
409 case TextureFormat::SIGNED_INT8: *((deInt8*)dst) = convertSatRte<deInt8> (src); break;
410 case TextureFormat::SIGNED_INT16: *((deInt16*)dst) = convertSatRte<deInt16> (src); break;
411 case TextureFormat::SIGNED_INT32: *((deInt32*)dst) = convertSatRte<deInt32> (src); break;
412 case TextureFormat::UNSIGNED_INT8: *((deUint8*)dst) = convertSatRte<deUint8> (src); break;
413 case TextureFormat::UNSIGNED_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src); break;
414 case TextureFormat::UNSIGNED_INT24: writeUint24(dst, convertSatRteUint24 (src)); break;
415 case TextureFormat::UNSIGNED_INT32: *((deUint32*)dst) = convertSatRte<deUint32> (src); break;
416 case TextureFormat::HALF_FLOAT: *((deFloat16*)dst) = deFloat32To16 (src); break;
417 case TextureFormat::FLOAT: *((float*)dst) = src; break;
418 case TextureFormat::FLOAT64: *((double*)dst) = (double)src; break;
419 case TextureFormat::UNORM_SHORT_10: *((deUint16*)dst) = (deUint16)(convertSatRteUint10(src * 1023.0f) << 6u); break;
420 case TextureFormat::UNORM_SHORT_12: *((deUint16*)dst) = (deUint16)(convertSatRteUint12(src * 4095.0f) << 4u); break;
421 case TextureFormat::USCALED_INT8: *((deUint8*)dst) = convertSatRte<deUint8> (src); break;
422 case TextureFormat::USCALED_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src); break;
423 case TextureFormat::SSCALED_INT8: *((deInt8*)dst) = convertSatRte<deInt8> (src); break;
424 case TextureFormat::SSCALED_INT16: *((deInt16*)dst) = convertSatRte<deInt16> (src); break;
486 void intToChannel (deUint8* dst, int src, TextureFormat::ChannelType type)
493 case TextureFormat::SNORM_INT8: *((deInt8*)dst) = convertSat<deInt8> (src); break;
494 case TextureFormat::SNORM_INT16: *((deInt16*)dst) = convertSat<deInt16> (src); break;
495 case TextureFormat::UNORM_INT8: *((deUint8*)dst) = convertSat<deUint8> (src); break;
496 case TextureFormat::UNORM_INT16: *((deUint16*)dst) = convertSat<deUint16> (src); break;
497 case TextureFormat::UNORM_INT24: writeUint24(dst, convertSatUint24 (src)); break;
498 case TextureFormat::SIGNED_INT8: *((deInt8*)dst) = convertSat<deInt8> (src); break;
499 case TextureFormat::SIGNED_INT16: *((deInt16*)dst) = convertSat<deInt16> (src); break;
500 case TextureFormat::SIGNED_INT32: *((deInt32*)dst) = convertSat<deInt32> (src); break;
501 case TextureFormat::SIGNED_INT64: *((deInt64*)dst) = convertSat<deInt64> ((deInt64)src); break;
502 case TextureFormat::UNSIGNED_INT8: *((deUint8*)dst) = convertSat<deUint8> ((deUint32)src); break;
503 case TextureFormat::UNSIGNED_INT16: *((deUint16*)dst) = convertSat<deUint16> ((deUint32)src); break;
504 case TextureFormat::UNSIGNED_INT24: writeUint24(dst, convertSatUint24 ((deUint32)src)); break;
505 case TextureFormat::UNSIGNED_INT32: *((deUint32*)dst) = convertSat<deUint32> ((deUint32)src); break;
506 case TextureFormat::UNSIGNED_INT64: *((deUint64*)dst) = convertSat<deUint64> ((deUint64)src); break;
507 case TextureFormat::HALF_FLOAT: *((deFloat16*)dst) = deFloat32To16((float)src); break;
508 case TextureFormat::FLOAT: *((float*)dst) = (float)src; break;
509 case TextureFormat::FLOAT64: *((double*)dst) = (double)src; break;
510 case TextureFormat::UNORM_SHORT_10: *((deUint16*)dst) = (deUint16)(convertSatUint10(src) << 6u); break;
511 case TextureFormat::UNORM_SHORT_12: *((deUint16*)dst) = (deUint16)(convertSatUint12(src) << 4u); break;
512 case TextureFormat::USCALED_INT8: *((deUint8*)dst) = convertSat<deUint8> ((deUint32)src); break;
513 case TextureFormat::USCALED_INT16: *((deUint16*)dst) = convertSat<deUint16> ((deUint32)src); break;
514 case TextureFormat::SSCALED_INT8: *((deInt8*)dst) = convertSat<deInt8> (src); break;
515 case TextureFormat::SSCALED_INT16: *((deInt16*)dst) = convertSat<deInt16> (src); break;
1079 Vector<T, 4> swizzleGe (const Vector<T, 4>& v, TextureFormat::ChannelOrder src, TextureFormat::ChannelOrder dst)
1081 if (src == dst)
1085 if ((src == TextureFormat::RGBA && dst == TextureFormat::ARGB) ||
1086 (src == TextureFormat::BGRA && dst == TextureFormat::ABGR))
1089 if ((src == TextureFormat::ARGB && dst == TextureFormat::RGBA) ||
1090 (src == TextureFormat::ABGR && dst == TextureFormat::BGRA))
1093 if ((src == TextureFormat::BGRA && dst == TextureFormat::ARGB) ||
1094 (src == TextureFormat::ABGR && dst == TextureFormat::RGBA) ||
1095 (src == TextureFormat::RGBA && dst == TextureFormat::ABGR) ||
1096 (src == TextureFormat::ARGB && dst == TextureFormat::BGRA))
1099 if ((src == TextureFormat::RGB && dst == TextureFormat::BGR) ||
1100 (src == TextureFormat::BGR && dst == TextureFormat::RGB) ||
1101 (src == TextureFormat::RGBA && dst == TextureFormat::BGRA) ||
1102 (src == TextureFormat::BGRA && dst == TextureFormat::RGBA))
3112 static void getCubeLinearSamples (const ConstPixelBufferAccess (&faceAccesses)[CUBEFACE_LAST], CubeFace baseFace, float u, float v, int depth, Vec4 (&dst)[4])
3167 dst[i] = sampleColors[i];