Home | History | Annotate | Download | only in common

Lines Matching refs:TextureFormat

128 const Channel* getChannelReadMap (TextureFormat::ChannelOrder order)
148 case TextureFormat::R: return R;
149 case TextureFormat::A: return A;
150 case TextureFormat::I: return I;
151 case TextureFormat::L: return L;
152 case TextureFormat::LA: return LA;
153 case TextureFormat::RG: return RG;
154 case TextureFormat::RA: return RA;
155 case TextureFormat::RGB: return RGB;
156 case TextureFormat::RGBA: return RGBA;
157 case TextureFormat::ARGB: return ARGB;
158 case TextureFormat::BGRA: return BGRA;
159 case TextureFormat::sRGB: return RGB;
160 case TextureFormat::sRGBA: return RGBA;
161 case TextureFormat::D: return D;
162 case TextureFormat::S: return S;
163 case TextureFormat::DS: return DS;
170 const int* getChannelWriteMap (TextureFormat::ChannelOrder order)
189 case TextureFormat::R: return R;
190 case TextureFormat::A: return A;
191 case TextureFormat::I: return I;
192 case TextureFormat::L: return L;
193 case TextureFormat::LA: return LA;
194 case TextureFormat::RG: return RG;
195 case TextureFormat::RA: return RA;
196 case TextureFormat::RGB: return RGB;
197 case TextureFormat::RGBA: return RGBA;
198 case TextureFormat::ARGB: return ARGB;
199 case TextureFormat::BGRA: return BGRA;
200 case TextureFormat::sRGB: return RGB;
201 case TextureFormat::sRGBA: return RGBA;
202 case TextureFormat::D: return D;
203 case TextureFormat::S: return S;
204 case TextureFormat::DS: return DS;
211 int getChannelSize (TextureFormat::ChannelType type)
215 case TextureFormat::SNORM_INT8: return 1;
216 case TextureFormat::SNORM_INT16: return 2;
217 case TextureFormat::SNORM_INT32: return 4;
218 case TextureFormat::UNORM_INT8: return 1;
219 case TextureFormat::UNORM_INT16: return 2;
220 case TextureFormat::UNORM_INT32: return 4;
221 case TextureFormat::SIGNED_INT8: return 1;
222 case TextureFormat::SIGNED_INT16: return 2;
223 case TextureFormat::SIGNED_INT32: return 4;
224 case TextureFormat::UNSIGNED_INT8: return 1;
225 case TextureFormat::UNSIGNED_INT16: return 2;
226 case TextureFormat::UNSIGNED_INT32: return 4;
227 case TextureFormat::HALF_FLOAT: return 2;
228 case TextureFormat::FLOAT: return 4;
235 int getNumUsedChannels (TextureFormat::ChannelOrder order)
239 case TextureFormat::R: return 1;
240 case TextureFormat::A: return 1;
241 case TextureFormat::I: return 1;
242 case TextureFormat::L: return 1;
243 case TextureFormat::LA: return 2;
244 case TextureFormat::RG: return 2;
245 case TextureFormat::RA: return 2;
246 case TextureFormat::RGB: return 3;
247 case TextureFormat::RGBA: return 4;
248 case TextureFormat::ARGB: return 4;
249 case TextureFormat::BGRA: return 4;
250 case TextureFormat::sRGB: return 3;
251 case TextureFormat::sRGBA: return 4;
252 case TextureFormat::D: return 1;
253 case TextureFormat::S: return 1;
254 case TextureFormat::DS: return 2;
261 inline float channelToFloat (const deUint8* value, TextureFormat::ChannelType type)
265 case TextureFormat::SNORM_INT8: return de::max(-1.0f, (float)*((const deInt8*)value) / 127.0f);
266 case TextureFormat::SNORM_INT16: return de::max(-1.0f, (float)*((const deInt16*)value) / 32767.0f);
267 case TextureFormat::SNORM_INT32: return de::max(-1.0f, (float)*((const deInt32*)value) / 2147483647.0f);
268 case TextureFormat::UNORM_INT8: return (float)*((const deUint8*)value) / 255.0f;
269 case TextureFormat::UNORM_INT16: return (float)*((const deUint16*)value) / 65535.0f;
270 case TextureFormat::UNORM_INT32: return (float)*((const deUint32*)value) / 4294967295.0f;
271 case TextureFormat::SIGNED_INT8: return (float)*((const deInt8*)value);
272 case TextureFormat::SIGNED_INT16: return (float)*((const deInt16*)value);
273 case TextureFormat::SIGNED_INT32: return (float)*((const deInt32*)value);
274 case TextureFormat::UNSIGNED_INT8: return (float)*((const deUint8*)value);
275 case TextureFormat::UNSIGNED_INT16: return (float)*((const deUint16*)value);
276 case TextureFormat::UNSIGNED_INT32: return (float)*((const deUint32*)value);
277 case TextureFormat::HALF_FLOAT: return deFloat16To32(*(const deFloat16*)value);
278 case TextureFormat::FLOAT: return *((const float*)value);
285 inline int channelToInt (const deUint8* value, TextureFormat::ChannelType type)
289 case TextureFormat::SNORM_INT8: return (int)*((const deInt8*)value);
290 case TextureFormat::SNORM_INT16: return (int)*((const deInt16*)value);
291 case TextureFormat::SNORM_INT32: return (int)*((const deInt32*)value);
292 case TextureFormat::UNORM_INT8: return (int)*((const deUint8*)value);
293 case TextureFormat::UNORM_INT16: return (int)*((const deUint16*)value);
294 case TextureFormat::UNORM_INT32: return (int)*((const deUint32*)value);
295 case TextureFormat::SIGNED_INT8: return (int)*((const deInt8*)value);
296 case TextureFormat::SIGNED_INT16: return (int)*((const deInt16*)value);
297 case TextureFormat::SIGNED_INT32: return (int)*((const deInt32*)value);
298 case TextureFormat::UNSIGNED_INT8: return (int)*((const deUint8*)value);
299 case TextureFormat::UNSIGNED_INT16: return (int)*((const deUint16*)value);
300 case TextureFormat::UNSIGNED_INT32: return (int)*((const deUint32*)value);
301 case TextureFormat::HALF_FLOAT: return (int)deFloat16To32(*(const deFloat16*)value);
302 case TextureFormat::FLOAT: return (int)*((const float*)value);
309 void floatToChannel (deUint8* dst, float src, TextureFormat::ChannelType type)
313 case TextureFormat::SNORM_INT8: *((deInt8*)dst) = convertSatRte<deInt8> (src * 127.0f); break;
314 case TextureFormat::SNORM_INT16: *((deInt16*)dst) = convertSatRte<deInt16> (src * 32767.0f); break;
315 case TextureFormat::SNORM_INT32: *((deInt32*)dst) = convertSatRte<deInt32> (src * 2147483647.0f); break;
316 case TextureFormat::UNORM_INT8: *((deUint8*)dst) = convertSatRte<deUint8> (src * 255.0f); break;
317 case TextureFormat::UNORM_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src * 65535.0f); break;
318 case TextureFormat::UNORM_INT32: *((deUint32*)dst) = convertSatRte<deUint32> (src * 4294967295.0f); break;
319 case TextureFormat::SIGNED_INT8: *((deInt8*)dst) = convertSatRte<deInt8> (src); break;
320 case TextureFormat::SIGNED_INT16: *((deInt16*)dst) = convertSatRte<deInt16> (src); break;
321 case TextureFormat::SIGNED_INT32: *((deInt32*)dst) = convertSatRte<deInt32> (src); break;
322 case TextureFormat::UNSIGNED_INT8: *((deUint8*)dst) = convertSatRte<deUint8> (src); break;
323 case TextureFormat::UNSIGNED_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src); break;
324 case TextureFormat::UNSIGNED_INT32: *((deUint32*)dst) = convertSatRte<deUint32> (src); break;
325 case TextureFormat::HALF_FLOAT: *((deFloat16*)dst) = deFloat32To16 (src); break;
326 case TextureFormat::FLOAT: *((float*)dst) = src; break;
346 void intToChannel (deUint8* dst, int src, TextureFormat::ChannelType type)
350 case TextureFormat::SNORM_INT8: *((deInt8*)dst) = convertSat<deInt8> (src); break;
351 case TextureFormat::SNORM_INT16: *((deInt16*)dst) = convertSat<deInt16> (src); break;
352 case TextureFormat::UNORM_INT8: *((deUint8*)dst) = convertSat<deUint8> (src); break;
353 case TextureFormat::UNORM_INT16: *((deUint16*)dst) = convertSat<deUint16> (src); break;
354 case TextureFormat::SIGNED_INT8: *((deInt8*)dst) = convertSat<deInt8> (src); break;
355 case TextureFormat::SIGNED_INT16: *((deInt16*)dst) = convertSat<deInt16> (src); break;
356 case TextureFormat::SIGNED_INT32: *((deInt32*)dst) = convertSat<deInt32> (src); break;
357 case TextureFormat::UNSIGNED_INT8: *((deUint8*)dst) = convertSat<deUint8> ((deUint32)src); break;
358 case TextureFormat::UNSIGNED_INT16: *((deUint16*)dst) = convertSat<deUint16> ((deUint32)src); break;
359 case TextureFormat::UNSIGNED_INT32: *((deUint32*)dst) = convertSat<deUint32> ((deUint32)src); break;
360 case TextureFormat::HALF_FLOAT: *((deFloat16*)dst) = deFloat32To16((float)src); break;
361 case TextureFormat::FLOAT: *((float*)dst) = (float)src; break;
436 int TextureFormat::getPixelSize (void) const
533 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, int width, int height, int depth, const void* data)
544 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, int width, int height, int depth, int rowPitch, int slicePitch, const void* data)
566 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, int width, int height, int depth, void* data)
571 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, int width, int height, int depth, int rowPitch, int slicePitch, void* data)
594 if (m_format.type == TextureFormat::UNORM_INT8)
596 if (m_format.order == TextureFormat::RGBA)
598 else if (m_format.order == TextureFormat::RGB)
613 case TextureFormat::UNORM_SHORT_565: return Vec4(NB16(11, 5), NB16( 5, 6), NB16( 0, 5), 1.0f);
614 case TextureFormat::UNORM_SHORT_555: return Vec4(NB16(10, 5), NB16( 5, 5), NB16( 0, 5), 1.0f);
615 case TextureFormat::UNORM_SHORT_4444: return Vec4(NB16(12, 4), NB16( 8, 4), NB16( 4, 4), NB16( 0, 4));
616 case TextureFormat::UNORM_SHORT_5551: return Vec4(NB16(11, 5), NB16( 6, 5), NB16( 1, 5), NB16( 0, 1));
617 case TextureFormat::UNORM_INT_101010: return Vec4(NB32(22, 10), NB32(12, 10), NB32( 2, 10), 1.0f);
618 case TextureFormat::UNORM_INT_1010102_REV: return Vec4(NB32( 0, 10), NB32(10, 10), NB32(20, 10), NB32(30, 2));
619 case TextureFormat::UNSIGNED_INT_1010102_REV: return UVec4(UB32(0, 10), UB32(10, 10), UB32(20, 10), UB32(30, 2)).cast<float>();
620 case TextureFormat::UNSIGNED_INT_999_E5_REV: return unpackRGB999E5(*((const deUint32*)pixelPtr));
622 case TextureFormat::UNSIGNED_INT_24_8:
626 case TextureFormat::D: return Vec4(NB32(8, 24), 0.0f, 0.0f, 1.0f);
627 case TextureFormat::DS: return Vec4(NB32(8, 24), 0.0f, 0.0f, 1.0f /* (float)UB32(0, 8) */);
632 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV:
634 DE_ASSERT(m_format.order == TextureFormat::DS);
641 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV:
683 if (m_format.type == TextureFormat::UNORM_INT8)
685 if (m_format.order == TextureFormat::RGBA) return readRGBA8888Int(pixelPtr);
686 else if (m_format.order == TextureFormat::RGB) return readRGB888Int(pixelPtr);
694 case TextureFormat::UNORM_SHORT_565: return UVec4(U16(11, 5), U16( 5, 6), U16( 0, 5), 1).cast<int>();
695 case TextureFormat::UNORM_SHORT_555: return UVec4(U16(10, 5), U16( 5, 5), U16( 0, 5), 1).cast<int>();
696 case TextureFormat::UNORM_SHORT_4444: return UVec4(U16(12, 4), U16( 8, 4), U16( 4, 4), U16( 0, 4)).cast<int>();
697 case TextureFormat::UNORM_SHORT_5551: return UVec4(U16(11, 5), U16( 6, 5), U16( 1, 5), U16( 0, 1)).cast<int>();
698 case TextureFormat::UNORM_INT_101010: return UVec4(U32(22, 10), U32(12, 10), U32( 2, 10), 1).cast<int>();
699 case TextureFormat::UNORM_INT_1010102_REV: return UVec4(U32( 0, 10), U32(10, 10), U32(20, 10), U32(30, 2)).cast<int>();
700 case TextureFormat::UNSIGNED_INT_1010102_REV: return UVec4(U32( 0, 10), U32(10, 10), U32(20, 10), U32(30, 2)).cast<int>();
702 case TextureFormat::UNSIGNED_INT_24_8:
705 case TextureFormat::D: return UVec4(U32(8, 24), 0, 0, 1).cast<int>();
706 case TextureFormat::S: return UVec4(0, 0, 0, U32(8, 24)).cast<int>();
707 case TextureFormat::DS: return UVec4(U32(8, 24), 0, 0, U32(0, 8)).cast<int>();
712 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV:
714 DE_ASSERT(m_format.order == TextureFormat::DS);
776 DE_ASSERT(m_format.order == TextureFormat::DS || m_format.order == TextureFormat::D);
780 case TextureFormat::UNSIGNED_INT_24_8:
783 case TextureFormat::D:
784 case TextureFormat::DS: // \note Fall-through.
791 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV:
792 DE_ASSERT(m_format.order == TextureFormat::DS);
796 DE_ASSERT(m_format.order == TextureFormat::D || m_format.order == TextureFormat::DS);
815 case TextureFormat::UNSIGNED_INT_24_8:
818 case TextureFormat::S: return (int)(*((const deUint32*)pixelPtr) >> 8);
819 case TextureFormat::DS: return (int)(*((const deUint32*)pixelPtr) & 0xff);
826 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV:
827 DE_ASSERT(m_format.order == TextureFormat::DS);
832 if (m_format.order == TextureFormat::S)
836 DE_ASSERT(m_format.order == TextureFormat::DS);
851 if (m_format.type == TextureFormat::UNORM_INT8)
853 if (m_format.order == TextureFormat::RGBA)
859 else if (m_format.order == TextureFormat::RGB)
875 case TextureFormat::UNORM_SHORT_565: *((deUint16*)pixelPtr) = (deUint16)(PN(color[0], 11, 5) | PN(color[1], 5, 6) | PN(color[2], 0, 5)); break;
876 case TextureFormat::UNORM_SHORT_555: *((deUint16*)pixelPtr) = (deUint16)(PN(color[0], 10, 5) | PN(color[1], 5, 5) | PN(color[2], 0, 5)); break;
877 case TextureFormat::UNORM_SHORT_4444: *((deUint16*)pixelPtr) = (deUint16)(PN(color[0], 12, 4) | PN(color[1], 8, 4) | PN(color[2], 4, 4) | PN(color[3], 0, 4)); break;
878 case TextureFormat::UNORM_SHORT_5551: *((deUint16*)pixelPtr) = (deUint16)(PN(color[0], 11, 5) | PN(color[1], 6, 5) | PN(color[2], 1, 5) | PN(color[3], 0, 1)); break;
879 case TextureFormat::UNORM_INT_101010: *((deUint32*)pixelPtr) = PN(color[0], 22, 10) | PN(color[1], 12, 10) | PN(color[2], 2, 10); break;
880 case TextureFormat::UNORM_INT_1010102_REV: *((deUint32*)pixelPtr) = PN(color[0], 0, 10) | PN(color[1], 10, 10) | PN(color[2], 20, 10) | PN(color[3], 30, 2); break;
882 case TextureFormat::UNSIGNED_INT_1010102_REV:
889 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV:
893 case TextureFormat::UNSIGNED_INT_999_E5_REV:
897 case TextureFormat::UNSIGNED_INT_24_8:
900 case TextureFormat::D: *((deUint32*)pixelPtr) = PN(color[0], 8, 24); break;
901 case TextureFormat::S: *((deUint32*)pixelPtr) = PN(color[3], 8, 24); break;
902 case TextureFormat::DS: *((deUint32*)pixelPtr) = PN(color[0], 8, 24) | PU((deUint32)color[3], 0, 8); break;
908 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV:
909 DE_ASSERT(m_format.order == TextureFormat::DS);
914 case TextureFormat::FLOAT:
915 if (m_format.order == TextureFormat::D)
950 if (m_format.type == TextureFormat::UNORM_INT8)
952 TextureFormat::RGBA) { writeRGBA8888Int(pixelPtr, color); return; }
953 else if (m_format.order == TextureFormat::RGB) { writeRGB888Int(pixelPtr, color); return; }
960 case TextureFormat::UNORM_SHORT_565: *((deUint16*)pixelPtr) = (deUint16)(PU(color[0], 11, 5) | PU(color[1], 5, 6) | PU(color[2], 0, 5)); break;
961 case TextureFormat::UNORM_SHORT_555: *((deUint16*)pixelPtr) = (deUint16)(PU(color[0], 10, 5) | PU(color[1], 5, 5) | PU(color[2], 0, 5)); break;
962 case TextureFormat::UNORM_SHORT_4444: *((deUint16*)pixelPtr) = (deUint16)(PU(color[0], 12, 4) | PU(color[1], 8, 4) | PU(color[2], 4, 4) | PU(color[3], 0, 4)); break;
963 case TextureFormat::UNORM_SHORT_5551: *((deUint16*)pixelPtr) = (deUint16)(PU(color[0], 11, 5) | PU(color[1], 6, 5) | PU(color[2], 1, 5) | PU(color[3], 0, 1)); break;
964 case TextureFormat::UNORM_INT_101010: *((deUint32*)pixelPtr) = PU(color[0], 22, 10) | PU(color[1], 12, 10) | PU(color[2], 2, 10); break;
965 case TextureFormat::UNORM_INT_1010102_REV: *((deUint32*)pixelPtr) = PU(color[0], 0, 10) | PU(color[1], 10, 10) | PU(color[2], 20, 10) | PU(color[3], 30, 2); break;
966 case TextureFormat::UNSIGNED_INT_1010102_REV: *((deUint32*)pixelPtr) = PU(color[0], 0, 10) | PU(color[1], 10, 10) | PU(color[2], 20, 10) | PU(color[3], 30, 2); break;
968 case TextureFormat::UNSIGNED_INT_24_8:
971 case TextureFormat::D: *((deUint32*)pixelPtr) = PU(color[0], 8, 24); break;
972 case TextureFormat::S: *((deUint32*)pixelPtr) = PU(color[3], 8, 24); break;
973 case TextureFormat::DS: *((deUint32*)pixelPtr) = PU(color[0], 8, 24) | PU((deUint32)color[3], 0, 8); break;
979 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV:
980 DE_ASSERT(m_format.order == TextureFormat::DS);
1015 case TextureFormat::UNSIGNED_INT_24_8:
1018 case TextureFormat::D: *((deUint32*)pixelPtr) = PN(depth, 8, 24); break;
1019 case TextureFormat::DS: *((deUint32*)pixelPtr) = (*((deUint32*)pixelPtr) & 0x000000ff) | PN(depth, 8, 24); break;
1025 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV:
1026 DE_ASSERT(m_format.order == TextureFormat::DS);
1031 DE_ASSERT(m_format.order == TextureFormat::D || m_format.order == TextureFormat::DS);
1052 case TextureFormat::UNSIGNED_INT_24_8:
1055 case TextureFormat::S: *((deUint32*)pixelPtr) = PU(stencil, 8, 24); break;
1056 case TextureFormat::DS: *((deUint32*)pixelPtr) = (*((deUint32*)pixelPtr) & 0xffffff00) | PU(stencil, 0, 8); break;
1062 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV:
1063 DE_ASSERT(m_format.order == TextureFormat::DS);
1068 if (m_format.order == TextureFormat::S)
1072 DE_ASSERT(m_format.order == TextureFormat::DS);
1161 static inline bool isSRGB (TextureFormat format)
1163 return format.order == TextureFormat::sRGB || format.order == TextureFormat::sRGBA;
1166 static bool isFixedPointDepthTextureFormat (const tcu::TextureFormat& format)
1170 if (format.order == TextureFormat::D)
1175 else if (format.order == TextureFormat::DS)
1180 case tcu::TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return false;
1181 case tcu::TextureFormat::UNSIGNED_INT_24_8: return true;
1824 TextureLevel::TextureLevel (const TextureFormat& format)
1832 TextureLevel::TextureLevel (const TextureFormat& format, int width, int height, int depth)
1845 void TextureLevel::setStorage (const TextureFormat& format, int width, int height, int depth)
2212 DE_ASSERT(src.getFormat().order == TextureFormat::D || src.getFormat().order == TextureFormat::DS);
2906 TextureLevelPyramid::TextureLevelPyramid (const TextureFormat& format, int numLevels)
2979 Texture1D::Texture1D (const TextureFormat& format, int width)
3021 Texture2D::Texture2D (const TextureFormat& format, int width, int height)
3139 DE_ASSERT(m_levels[0][0].getFormat().order == TextureFormat::D || m_levels[0][0].getFormat().order == TextureFormat::DS);
3156 TextureCube::TextureCube (const TextureFormat& format, int size)
3342 Texture1DArray::Texture1DArray (const TextureFormat& format, int width, int numLayers)
3387 Texture2DArray::Texture2DArray (const TextureFormat& format, int width, int height, int numLayers)
3444 Texture3D::Texture3D (const TextureFormat& format, int width, int height, int depth)
3538 TextureCubeArray::TextureCubeArray (const TextureFormat& format, int size, int depth)
3585 std::ostream& operator<< (std::ostream& str, TextureFormat::ChannelOrder order)
3589 case TextureFormat::R: return str << "R";
3590 case TextureFormat::A: return str << "A";
3591 case TextureFormat::I: return str << "I";
3592 case TextureFormat::L: return str << "L";
3593 case TextureFormat::LA: return str << "LA";
3594 case TextureFormat::RG: return str << "RG";
3595 case TextureFormat::RA: return str << "RA";
3596 case TextureFormat::RGB: return str << "RGB";
3597 case TextureFormat::RGBA: return str << "RGBA";
3598 case TextureFormat::ARGB: return str << "ARGB";
3599 case TextureFormat::BGRA: return str << "BGRA";
3600 case TextureFormat::CHANNELORDER_LAST: return str << "CHANNELORDER_LAST";
3605 std::ostream& operator<< (std::ostream& str, TextureFormat::ChannelType type)
3609 case TextureFormat::SNORM_INT8: return str << "SNORM_INT8";
3610 case TextureFormat::SNORM_INT16: return str << "SNORM_INT16";
3611 case TextureFormat::UNORM_INT8: return str << "UNORM_INT8";
3612 case TextureFormat::UNORM_INT16: return str << "UNORM_INT16";
3613 case TextureFormat::UNORM_SHORT_565: return str << "UNORM_SHORT_565";
3614 case TextureFormat::UNORM_SHORT_555: return str << "UNORM_SHORT_555";
3615 case TextureFormat::UNORM_SHORT_4444: return str << "UNORM_SHORT_4444";
3616 case TextureFormat::UNORM_SHORT_5551: return str << "UNORM_SHORT_5551";
3617 case TextureFormat::UNORM_INT_101010: return str << "UNORM_INT_101010";
3618 case TextureFormat::SIGNED_INT8: return str << "SIGNED_INT8";
3619 case TextureFormat::SIGNED_INT16: return str << "SIGNED_INT16";
3620 case TextureFormat::SIGNED_INT32: return str << "SIGNED_INT32";
3621 case TextureFormat::UNSIGNED_INT8: return str << "UNSIGNED_INT8";
3622 case TextureFormat::UNSIGNED_INT16: return str << "UNSIGNED_INT16";
3623 case TextureFormat::UNSIGNED_INT32: return str << "UNSIGNED_INT32";
3624 case TextureFormat::HALF_FLOAT: return str << "HALF_FLOAT";
3625 case TextureFormat::FLOAT: return str << "FLOAT";
3626 case TextureFormat::CHANNELTYPE_LAST: return str << "CHANNELTYPE_LAST";
3646 std::ostream& operator<< (std::ostream& str, TextureFormat format)