Lines Matching refs:TextureFormat
150 int getChannelSize (TextureFormat::ChannelType type) in getChannelSize()
153 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 27); in getChannelSize()
157 case TextureFormat::SNORM_INT8: return 1; in getChannelSize()
158 case TextureFormat::SNORM_INT16: return 2; in getChannelSize()
159 case TextureFormat::SNORM_INT32: return 4; in getChannelSize()
160 case TextureFormat::UNORM_INT8: return 1; in getChannelSize()
161 case TextureFormat::UNORM_INT16: return 2; in getChannelSize()
162 case TextureFormat::UNORM_INT24: return 3; in getChannelSize()
163 case TextureFormat::UNORM_INT32: return 4; in getChannelSize()
164 case TextureFormat::SIGNED_INT8: return 1; in getChannelSize()
165 case TextureFormat::SIGNED_INT16: return 2; in getChannelSize()
166 case TextureFormat::SIGNED_INT32: return 4; in getChannelSize()
167 case TextureFormat::UNSIGNED_INT8: return 1; in getChannelSize()
168 case TextureFormat::UNSIGNED_INT16: return 2; in getChannelSize()
169 case TextureFormat::UNSIGNED_INT24: return 3; in getChannelSize()
170 case TextureFormat::UNSIGNED_INT32: return 4; in getChannelSize()
171 case TextureFormat::HALF_FLOAT: return 2; in getChannelSize()
172 case TextureFormat::FLOAT: return 4; in getChannelSize()
179 int getNumUsedChannels (TextureFormat::ChannelOrder order) in getNumUsedChannels()
182 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 18); in getNumUsedChannels()
186 case TextureFormat::R: return 1; in getNumUsedChannels()
187 case TextureFormat::A: return 1; in getNumUsedChannels()
188 case TextureFormat::I: return 1; in getNumUsedChannels()
189 case TextureFormat::L: return 1; in getNumUsedChannels()
190 case TextureFormat::LA: return 2; in getNumUsedChannels()
191 case TextureFormat::RG: return 2; in getNumUsedChannels()
192 case TextureFormat::RA: return 2; in getNumUsedChannels()
193 case TextureFormat::RGB: return 3; in getNumUsedChannels()
194 case TextureFormat::RGBA: return 4; in getNumUsedChannels()
195 case TextureFormat::ARGB: return 4; in getNumUsedChannels()
196 case TextureFormat::BGRA: return 4; in getNumUsedChannels()
197 case TextureFormat::sR: return 1; in getNumUsedChannels()
198 case TextureFormat::sRG: return 2; in getNumUsedChannels()
199 case TextureFormat::sRGB: return 3; in getNumUsedChannels()
200 case TextureFormat::sRGBA: return 4; in getNumUsedChannels()
201 case TextureFormat::D: return 1; in getNumUsedChannels()
202 case TextureFormat::S: return 1; in getNumUsedChannels()
203 case TextureFormat::DS: return 2; in getNumUsedChannels()
210 inline float channelToFloat (const deUint8* value, TextureFormat::ChannelType type) in channelToFloat()
213 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 27); in channelToFloat()
217 case TextureFormat::SNORM_INT8: return de::max(-1.0f, (float)*((const deInt8*)value) / 127.0f); in channelToFloat()
218 …case TextureFormat::SNORM_INT16: return de::max(-1.0f, (float)*((const deInt16*)value) / 32767.0f… in channelToFloat()
219 …case TextureFormat::SNORM_INT32: return de::max(-1.0f, (float)*((const deInt32*)value) / 21474836… in channelToFloat()
220 case TextureFormat::UNORM_INT8: return (float)*((const deUint8*)value) / 255.0f; in channelToFloat()
221 case TextureFormat::UNORM_INT16: return (float)*((const deUint16*)value) / 65535.0f; in channelToFloat()
222 case TextureFormat::UNORM_INT24: return (float)readUint24(value) / 16777215.0f; in channelToFloat()
223 case TextureFormat::UNORM_INT32: return (float)*((const deUint32*)value) / 4294967295.0f; in channelToFloat()
224 case TextureFormat::SIGNED_INT8: return (float)*((const deInt8*)value); in channelToFloat()
225 case TextureFormat::SIGNED_INT16: return (float)*((const deInt16*)value); in channelToFloat()
226 case TextureFormat::SIGNED_INT32: return (float)*((const deInt32*)value); in channelToFloat()
227 case TextureFormat::UNSIGNED_INT8: return (float)*((const deUint8*)value); in channelToFloat()
228 case TextureFormat::UNSIGNED_INT16: return (float)*((const deUint16*)value); in channelToFloat()
229 case TextureFormat::UNSIGNED_INT24: return (float)readUint24(value); in channelToFloat()
230 case TextureFormat::UNSIGNED_INT32: return (float)*((const deUint32*)value); in channelToFloat()
231 case TextureFormat::HALF_FLOAT: return deFloat16To32(*(const deFloat16*)value); in channelToFloat()
232 case TextureFormat::FLOAT: return *((const float*)value); in channelToFloat()
239 inline int channelToInt (const deUint8* value, TextureFormat::ChannelType type) in channelToInt()
242 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 27); in channelToInt()
246 case TextureFormat::SNORM_INT8: return (int)*((const deInt8*)value); in channelToInt()
247 case TextureFormat::SNORM_INT16: return (int)*((const deInt16*)value); in channelToInt()
248 case TextureFormat::SNORM_INT32: return (int)*((const deInt32*)value); in channelToInt()
249 case TextureFormat::UNORM_INT8: return (int)*((const deUint8*)value); in channelToInt()
250 case TextureFormat::UNORM_INT16: return (int)*((const deUint16*)value); in channelToInt()
251 case TextureFormat::UNORM_INT24: return (int)readUint24(value); in channelToInt()
252 case TextureFormat::UNORM_INT32: return (int)*((const deUint32*)value); in channelToInt()
253 case TextureFormat::SIGNED_INT8: return (int)*((const deInt8*)value); in channelToInt()
254 case TextureFormat::SIGNED_INT16: return (int)*((const deInt16*)value); in channelToInt()
255 case TextureFormat::SIGNED_INT32: return (int)*((const deInt32*)value); in channelToInt()
256 case TextureFormat::UNSIGNED_INT8: return (int)*((const deUint8*)value); in channelToInt()
257 case TextureFormat::UNSIGNED_INT16: return (int)*((const deUint16*)value); in channelToInt()
258 case TextureFormat::UNSIGNED_INT24: return (int)readUint24(value); in channelToInt()
259 case TextureFormat::UNSIGNED_INT32: return (int)*((const deUint32*)value); in channelToInt()
260 case TextureFormat::HALF_FLOAT: return (int)deFloat16To32(*(const deFloat16*)value); in channelToInt()
261 case TextureFormat::FLOAT: return (int)*((const float*)value); in channelToInt()
268 void floatToChannel (deUint8* dst, float src, TextureFormat::ChannelType type) in floatToChannel()
271 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 27); in floatToChannel()
275 …case TextureFormat::SNORM_INT8: *((deInt8*)dst) = convertSatRte<deInt8> (src * 127.0f); bre… in floatToChannel()
276 …case TextureFormat::SNORM_INT16: *((deInt16*)dst) = convertSatRte<deInt16> (src * 32767.0f); br… in floatToChannel()
277 …case TextureFormat::SNORM_INT32: *((deInt32*)dst) = convertSatRte<deInt32> (src * 2147483647.0f)… in floatToChannel()
278 …case TextureFormat::UNORM_INT8: *((deUint8*)dst) = convertSatRte<deUint8> (src * 255.0f); bre… in floatToChannel()
279 …case TextureFormat::UNORM_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src * 65535.0f); … in floatToChannel()
280 …case TextureFormat::UNORM_INT24: writeUint24(dst, convertSatRteUint24 (src * 16777215.0f)); b… in floatToChannel()
281 …case TextureFormat::UNORM_INT32: *((deUint32*)dst) = convertSatRte<deUint32> (src * 4294967295.0… in floatToChannel()
282 case TextureFormat::SIGNED_INT8: *((deInt8*)dst) = convertSatRte<deInt8> (src); break; in floatToChannel()
283 case TextureFormat::SIGNED_INT16: *((deInt16*)dst) = convertSatRte<deInt16> (src); break; in floatToChannel()
284 case TextureFormat::SIGNED_INT32: *((deInt32*)dst) = convertSatRte<deInt32> (src); break; in floatToChannel()
285 case TextureFormat::UNSIGNED_INT8: *((deUint8*)dst) = convertSatRte<deUint8> (src); break; in floatToChannel()
286 …case TextureFormat::UNSIGNED_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src); break; in floatToChannel()
287 case TextureFormat::UNSIGNED_INT24: writeUint24(dst, convertSatRteUint24 (src)); break; in floatToChannel()
288 …case TextureFormat::UNSIGNED_INT32: *((deUint32*)dst) = convertSatRte<deUint32> (src); break; in floatToChannel()
289 case TextureFormat::HALF_FLOAT: *((deFloat16*)dst) = deFloat32To16 (src); break; in floatToChannel()
290 case TextureFormat::FLOAT: *((float*)dst) = src; break; in floatToChannel()
324 void intToChannel (deUint8* dst, int src, TextureFormat::ChannelType type) in intToChannel()
327 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 27); in intToChannel()
331 case TextureFormat::SNORM_INT8: *((deInt8*)dst) = convertSat<deInt8> (src); break; in intToChannel()
332 case TextureFormat::SNORM_INT16: *((deInt16*)dst) = convertSat<deInt16> (src); break; in intToChannel()
333 case TextureFormat::UNORM_INT8: *((deUint8*)dst) = convertSat<deUint8> (src); break; in intToChannel()
334 case TextureFormat::UNORM_INT16: *((deUint16*)dst) = convertSat<deUint16> (src); break; in intToChannel()
335 case TextureFormat::UNORM_INT24: writeUint24(dst, convertSatUint24 (src)); break; in intToChannel()
336 case TextureFormat::SIGNED_INT8: *((deInt8*)dst) = convertSat<deInt8> (src); break; in intToChannel()
337 case TextureFormat::SIGNED_INT16: *((deInt16*)dst) = convertSat<deInt16> (src); break; in intToChannel()
338 case TextureFormat::SIGNED_INT32: *((deInt32*)dst) = convertSat<deInt32> (src); break; in intToChannel()
339 …case TextureFormat::UNSIGNED_INT8: *((deUint8*)dst) = convertSat<deUint8> ((deUint32)src); break; in intToChannel()
340 …case TextureFormat::UNSIGNED_INT16: *((deUint16*)dst) = convertSat<deUint16> ((deUint32)src); br… in intToChannel()
341 …case TextureFormat::UNSIGNED_INT24: writeUint24(dst, convertSatUint24 ((deUint32)src)); break; in intToChannel()
342 …case TextureFormat::UNSIGNED_INT32: *((deUint32*)dst) = convertSat<deUint32> ((deUint32)src); br… in intToChannel()
343 case TextureFormat::HALF_FLOAT: *((deFloat16*)dst) = deFloat32To16((float)src); break; in intToChannel()
344 case TextureFormat::FLOAT: *((float*)dst) = (float)src; break; in intToChannel()
389 const TextureSwizzle& getChannelReadSwizzle (TextureFormat::ChannelOrder order) in getChannelReadSwizzle()
392 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 18); in getChannelReadSwizzle()
412 case TextureFormat::R: return R; in getChannelReadSwizzle()
413 case TextureFormat::A: return A; in getChannelReadSwizzle()
414 case TextureFormat::I: return I; in getChannelReadSwizzle()
415 case TextureFormat::L: return L; in getChannelReadSwizzle()
416 case TextureFormat::LA: return LA; in getChannelReadSwizzle()
417 case TextureFormat::RG: return RG; in getChannelReadSwizzle()
418 case TextureFormat::RA: return RA; in getChannelReadSwizzle()
419 case TextureFormat::RGB: return RGB; in getChannelReadSwizzle()
420 case TextureFormat::RGBA: return RGBA; in getChannelReadSwizzle()
421 case TextureFormat::ARGB: return ARGB; in getChannelReadSwizzle()
422 case TextureFormat::BGRA: return BGRA; in getChannelReadSwizzle()
423 case TextureFormat::sR: return R; in getChannelReadSwizzle()
424 case TextureFormat::sRG: return RG; in getChannelReadSwizzle()
425 case TextureFormat::sRGB: return RGB; in getChannelReadSwizzle()
426 case TextureFormat::sRGBA: return RGBA; in getChannelReadSwizzle()
427 case TextureFormat::D: return D; in getChannelReadSwizzle()
428 case TextureFormat::S: return S; in getChannelReadSwizzle()
429 case TextureFormat::DS: return DS; in getChannelReadSwizzle()
436 const TextureSwizzle& getChannelWriteSwizzle (TextureFormat::ChannelOrder order) in getChannelWriteSwizzle()
439 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 18); in getChannelWriteSwizzle()
459 case TextureFormat::R: return R; in getChannelWriteSwizzle()
460 case TextureFormat::A: return A; in getChannelWriteSwizzle()
461 case TextureFormat::I: return I; in getChannelWriteSwizzle()
462 case TextureFormat::L: return L; in getChannelWriteSwizzle()
463 case TextureFormat::LA: return LA; in getChannelWriteSwizzle()
464 case TextureFormat::RG: return RG; in getChannelWriteSwizzle()
465 case TextureFormat::RA: return RA; in getChannelWriteSwizzle()
466 case TextureFormat::RGB: return RGB; in getChannelWriteSwizzle()
467 case TextureFormat::RGBA: return RGBA; in getChannelWriteSwizzle()
468 case TextureFormat::ARGB: return ARGB; in getChannelWriteSwizzle()
469 case TextureFormat::BGRA: return BGRA; in getChannelWriteSwizzle()
470 case TextureFormat::sR: return R; in getChannelWriteSwizzle()
471 case TextureFormat::sRG: return RG; in getChannelWriteSwizzle()
472 case TextureFormat::sRGB: return RGB; in getChannelWriteSwizzle()
473 case TextureFormat::sRGBA: return RGBA; in getChannelWriteSwizzle()
474 case TextureFormat::D: return D; in getChannelWriteSwizzle()
475 case TextureFormat::S: return S; in getChannelWriteSwizzle()
476 case TextureFormat::DS: return DS; in getChannelWriteSwizzle()
483 IVec3 calculatePackedPitch (const TextureFormat& format, const IVec3& size) in calculatePackedPitch()
493 int TextureFormat::getPixelSize (void) const in getPixelSize()
542 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, int width, int height,… in ConstPixelBufferAccess()
550 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, const IVec3& size, con… in ConstPixelBufferAccess()
558 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, int width, int height,… in ConstPixelBufferAccess()
566 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, const IVec3& size, con… in ConstPixelBufferAccess()
583 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, int width, int height, int depth… in PixelBufferAccess()
588 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, const IVec3& size, void* data) in PixelBufferAccess()
593 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, int width, int height, int depth… in PixelBufferAccess()
598 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, const IVec3& size, const IVec3& … in PixelBufferAccess()
617 if (m_format.type == TextureFormat::UNORM_INT8) in getPixel()
619 if (m_format.order == TextureFormat::RGBA) in getPixel()
621 else if (m_format.order == TextureFormat::RGB) in getPixel()
633 …case TextureFormat::UNORM_SHORT_565: return Vec4(NB16(11, 5), NB16( 5, 6), NB16( 0, 5), 1.0f); in getPixel()
634 …case TextureFormat::UNORM_SHORT_555: return Vec4(NB16(10, 5), NB16( 5, 5), NB16( 0, 5), 1.0f); in getPixel()
635 …case TextureFormat::UNORM_SHORT_4444: return Vec4(NB16(12, 4), NB16( 8, 4), NB16( 4, 4), NB16… in getPixel()
636 …case TextureFormat::UNORM_SHORT_5551: return Vec4(NB16(11, 5), NB16( 6, 5), NB16( 1, 5), NB16… in getPixel()
637 …case TextureFormat::UNORM_INT_101010: return Vec4(NB32(22, 10), NB32(12, 10), NB32( 2, 10), 1.0f… in getPixel()
638 …case TextureFormat::UNORM_INT_1010102_REV: return Vec4(NB32( 0, 10), NB32(10, 10), NB32(20, 10), … in getPixel()
639 …case TextureFormat::UNSIGNED_INT_1010102_REV: return UVec4(UB32(0, 10), UB32(10, 10), UB32(20, 10)… in getPixel()
640 case TextureFormat::UNSIGNED_INT_999_E5_REV: return unpackRGB999E5(*((const deUint32*)pixelPtr)); in getPixel()
642 case TextureFormat::UNSIGNED_INT_24_8: in getPixel()
646 case TextureFormat::D: return Vec4(NB32(8, 24), 0.0f, 0.0f, 1.0f); in getPixel()
647 case TextureFormat::DS: return Vec4(NB32(8, 24), 0.0f, 0.0f, 1.0f /* (float)UB32(0, 8) */); in getPixel()
652 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in getPixel()
654 DE_ASSERT(m_format.order == TextureFormat::DS); in getPixel()
661 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: in getPixel()
715 if (m_format.type == TextureFormat::UNORM_INT8) in getPixelInt()
717 if (m_format.order == TextureFormat::RGBA) return readRGBA8888Int(pixelPtr); in getPixelInt()
718 else if (m_format.order == TextureFormat::RGB) return readRGB888Int(pixelPtr); in getPixelInt()
726 …case TextureFormat::UNORM_SHORT_565: return UVec4(U16(11, 5), U16( 5, 6), U16( 0, 5), 1).cast… in getPixelInt()
727 …case TextureFormat::UNORM_SHORT_555: return UVec4(U16(10, 5), U16( 5, 5), U16( 0, 5), 1).cast… in getPixelInt()
728 …case TextureFormat::UNORM_SHORT_4444: return UVec4(U16(12, 4), U16( 8, 4), U16( 4, 4), U16( 0… in getPixelInt()
729 …case TextureFormat::UNORM_SHORT_5551: return UVec4(U16(11, 5), U16( 6, 5), U16( 1, 5), U16( 0… in getPixelInt()
730 …case TextureFormat::UNORM_INT_101010: return UVec4(U32(22, 10), U32(12, 10), U32( 2, 10), 1).cas… in getPixelInt()
731 …case TextureFormat::UNORM_INT_1010102_REV: return UVec4(U32( 0, 10), U32(10, 10), U32(20, 10), U3… in getPixelInt()
732 …case TextureFormat::UNSIGNED_INT_1010102_REV: return UVec4(U32( 0, 10), U32(10, 10), U32(20, 10), … in getPixelInt()
734 case TextureFormat::UNSIGNED_INT_24_8: in getPixelInt()
737 case TextureFormat::D: return UVec4(U32(8, 24), 0, 0, 1).cast<int>(); in getPixelInt()
738 case TextureFormat::S: return UVec4(0, 0, 0, U32(8, 24)).cast<int>(); in getPixelInt()
739 case TextureFormat::DS: return UVec4(U32(8, 24), 0, 0, U32(0, 8)).cast<int>(); in getPixelInt()
744 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in getPixelInt()
746 DE_ASSERT(m_format.order == TextureFormat::DS); in getPixelInt()
820 DE_ASSERT(m_format.order == TextureFormat::DS || m_format.order == TextureFormat::D); in getPixDepth()
824 case TextureFormat::UNSIGNED_INT_24_8: in getPixDepth()
827 case TextureFormat::D: in getPixDepth()
828 case TextureFormat::DS: // \note Fall-through. in getPixDepth()
835 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in getPixDepth()
836 DE_ASSERT(m_format.order == TextureFormat::DS); in getPixDepth()
840 DE_ASSERT(m_format.order == TextureFormat::D || m_format.order == TextureFormat::DS); in getPixDepth()
858 case TextureFormat::UNSIGNED_INT_24_8: in getPixStencil()
861 case TextureFormat::S: return (int)(*((const deUint32*)pixelPtr) >> 8); in getPixStencil()
862 case TextureFormat::DS: return (int)(*((const deUint32*)pixelPtr) & 0xff); in getPixStencil()
869 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in getPixStencil()
870 DE_ASSERT(m_format.order == TextureFormat::DS); in getPixStencil()
875 if (m_format.order == TextureFormat::S) in getPixStencil()
879 DE_ASSERT(m_format.order == TextureFormat::DS); in getPixStencil()
896 if (m_format.type == TextureFormat::UNORM_INT8) in setPixel()
898 if (m_format.order == TextureFormat::RGBA) in setPixel()
903 else if (m_format.order == TextureFormat::RGB) in setPixel()
915 …case TextureFormat::UNORM_SHORT_565: *((deUint16*)pixelPtr) = (deUint16)(PN(color[0], 11, 5) | PN… in setPixel()
916 …case TextureFormat::UNORM_SHORT_555: *((deUint16*)pixelPtr) = (deUint16)(PN(color[0], 10, 5) | PN… in setPixel()
917 …case TextureFormat::UNORM_SHORT_4444: *((deUint16*)pixelPtr) = (deUint16)(PN(color[0], 12, 4) | P… in setPixel()
918 …case TextureFormat::UNORM_SHORT_5551: *((deUint16*)pixelPtr) = (deUint16)(PN(color[0], 11, 5) | P… in setPixel()
919 …case TextureFormat::UNORM_INT_101010: *((deUint32*)pixelPtr) = PN(color[0], 22, 10) | PN(color[1]… in setPixel()
920 …case TextureFormat::UNORM_INT_1010102_REV: *((deUint32*)pixelPtr) = PN(color[0], 0, 10) | PN(colo… in setPixel()
922 case TextureFormat::UNSIGNED_INT_1010102_REV: in setPixel()
929 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: in setPixel()
933 case TextureFormat::UNSIGNED_INT_999_E5_REV: in setPixel()
937 case TextureFormat::UNSIGNED_INT_24_8: in setPixel()
940 case TextureFormat::D: *((deUint32*)pixelPtr) = PN(color[0], 8, 24); break; in setPixel()
941 case TextureFormat::S: *((deUint32*)pixelPtr) = PN(color[3], 8, 24); break; in setPixel()
942 …case TextureFormat::DS: *((deUint32*)pixelPtr) = PN(color[0], 8, 24) | PU((deUint32)color[3], 0, … in setPixel()
948 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in setPixel()
949 DE_ASSERT(m_format.order == TextureFormat::DS); in setPixel()
954 case TextureFormat::FLOAT: in setPixel()
955 if (m_format.order == TextureFormat::D) in setPixel()
991 if (m_format.type == TextureFormat::UNORM_INT8) in setPixel()
993 if (m_format.order == TextureFormat::RGBA) { writeRGBA8888Int(pixelPtr, color); return; } in setPixel()
994 else if (m_format.order == TextureFormat::RGB) { writeRGB888Int(pixelPtr, color); return; } in setPixel()
1001 …case TextureFormat::UNORM_SHORT_565: *((deUint16*)pixelPtr) = (deUint16)(PU(color[0], 11, 5) | P… in setPixel()
1002 …case TextureFormat::UNORM_SHORT_555: *((deUint16*)pixelPtr) = (deUint16)(PU(color[0], 10, 5) | P… in setPixel()
1003 …case TextureFormat::UNORM_SHORT_4444: *((deUint16*)pixelPtr) = (deUint16)(PU(color[0], 12, 4) | … in setPixel()
1004 …case TextureFormat::UNORM_SHORT_5551: *((deUint16*)pixelPtr) = (deUint16)(PU(color[0], 11, 5) | … in setPixel()
1005 …case TextureFormat::UNORM_INT_101010: *((deUint32*)pixelPtr) = PU(color[0], 22, 10) | PU(color[1… in setPixel()
1006 …case TextureFormat::UNORM_INT_1010102_REV: *((deUint32*)pixelPtr) = PU(color[0], 0, 10) | PU(col… in setPixel()
1007 …case TextureFormat::UNSIGNED_INT_1010102_REV: *((deUint32*)pixelPtr) = PU(color[0], 0, 10) | PU(c… in setPixel()
1009 case TextureFormat::UNSIGNED_INT_24_8: in setPixel()
1012 case TextureFormat::D: *((deUint32*)pixelPtr) = PU(color[0], 8, 24); break; in setPixel()
1013 case TextureFormat::S: *((deUint32*)pixelPtr) = PU(color[3], 8, 24); break; in setPixel()
1014 …case TextureFormat::DS: *((deUint32*)pixelPtr) = PU(color[0], 8, 24) | PU((deUint32)color[3], 0, … in setPixel()
1020 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in setPixel()
1021 DE_ASSERT(m_format.order == TextureFormat::DS); in setPixel()
1057 case TextureFormat::UNSIGNED_INT_24_8: in setPixDepth()
1060 case TextureFormat::D: *((deUint32*)pixelPtr) = PN(depth, 8, 24); break; in setPixDepth()
1061 …case TextureFormat::DS: *((deUint32*)pixelPtr) = (*((deUint32*)pixelPtr) & 0x000000ff) | PN(depth… in setPixDepth()
1067 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in setPixDepth()
1068 DE_ASSERT(m_format.order == TextureFormat::DS); in setPixDepth()
1073 DE_ASSERT(m_format.order == TextureFormat::D || m_format.order == TextureFormat::DS); in setPixDepth()
1093 case TextureFormat::UNSIGNED_INT_24_8: in setPixStencil()
1096 case TextureFormat::S: *((deUint32*)pixelPtr) = PU(stencil, 8, 24); break; in setPixStencil()
1097 …case TextureFormat::DS: *((deUint32*)pixelPtr) = (*((deUint32*)pixelPtr) & 0xffffff00) | PU(stenc… in setPixStencil()
1103 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in setPixStencil()
1104 DE_ASSERT(m_format.order == TextureFormat::DS); in setPixStencil()
1109 if (m_format.order == TextureFormat::S) in setPixStencil()
1113 DE_ASSERT(m_format.order == TextureFormat::DS); in setPixStencil()
1202 static bool isFixedPointDepthTextureFormat (const tcu::TextureFormat& format) in isFixedPointDepthTextureFormat()
1206 if (format.order == TextureFormat::D) in isFixedPointDepthTextureFormat()
1211 else if (format.order == TextureFormat::DS) in isFixedPointDepthTextureFormat()
1216 case tcu::TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return false; in isFixedPointDepthTextureFormat()
1217 case tcu::TextureFormat::UNSIGNED_INT_24_8: return true; in isFixedPointDepthTextureFormat()
1239 static inline Vec4 lookupBorder (const tcu::TextureFormat& format, const tcu::Sampler& sampler) in lookupBorder()
1678 TextureLevel::TextureLevel (const TextureFormat& format) in TextureLevel()
1684 TextureLevel::TextureLevel (const TextureFormat& format, int width, int height, int depth) in TextureLevel()
1695 void TextureLevel::setStorage (const TextureFormat& format, int width, int height, int depth) in setStorage()
1966 DE_ASSERT(src.getFormat().order == TextureFormat::D || src.getFormat().order == TextureFormat::DS); in gatherArray2DOffsetsCompare()
2658 TextureLevelPyramid::TextureLevelPyramid (const TextureFormat& format, int numLevels) in TextureLevelPyramid()
2731 Texture1D::Texture1D (const TextureFormat& format, int width) in Texture1D()
2773 Texture2D::Texture2D (const TextureFormat& format, int width, int height) in Texture2D()
2891 …SSERT(m_levels[0][0].getFormat().order == TextureFormat::D || m_levels[0][0].getFormat().order == … in gatherCompare()
2908 TextureCube::TextureCube (const TextureFormat& format, int size) in TextureCube()
3094 Texture1DArray::Texture1DArray (const TextureFormat& format, int width, int numLayers) in Texture1DArray()
3139 Texture2DArray::Texture2DArray (const TextureFormat& format, int width, int height, int numLayers) in Texture2DArray()
3196 Texture3D::Texture3D (const TextureFormat& format, int width, int height, int depth) in Texture3D()
3290 TextureCubeArray::TextureCubeArray (const TextureFormat& format, int size, int depth) in TextureCubeArray()
3337 std::ostream& operator<< (std::ostream& str, TextureFormat::ChannelOrder order) in operator <<()
3363 return str << de::getSizedArrayElement<TextureFormat::CHANNELORDER_LAST>(orderStrings, order); in operator <<()
3366 std::ostream& operator<< (std::ostream& str, TextureFormat::ChannelType type) in operator <<()
3399 return str << de::getSizedArrayElement<TextureFormat::CHANNELTYPE_LAST>(typeStrings, type); in operator <<()
3417 std::ostream& operator<< (std::ostream& str, TextureFormat format) in operator <<()