• Home
  • Raw
  • Download

Lines Matching refs:TextureFormat

46 TransferFormat getTransferFormat (tcu::TextureFormat texFormat)  in getTransferFormat()
48 using tcu::TextureFormat; in getTransferFormat()
56 case TextureFormat::SIGNED_INT8: in getTransferFormat()
57 case TextureFormat::SIGNED_INT16: in getTransferFormat()
58 case TextureFormat::SIGNED_INT32: in getTransferFormat()
59 case TextureFormat::UNSIGNED_INT8: in getTransferFormat()
60 case TextureFormat::UNSIGNED_INT16: in getTransferFormat()
61 case TextureFormat::UNSIGNED_INT32: in getTransferFormat()
62 case TextureFormat::UNSIGNED_INT_1010102_REV: in getTransferFormat()
73 case TextureFormat::A: format = GL_ALPHA; break; in getTransferFormat()
74 case TextureFormat::L: format = GL_LUMINANCE; break; in getTransferFormat()
75 case TextureFormat::LA: format = GL_LUMINANCE_ALPHA; break; in getTransferFormat()
76 case TextureFormat::R: format = isInt ? GL_RED_INTEGER : GL_RED; break; in getTransferFormat()
77 case TextureFormat::RG: format = isInt ? GL_RG_INTEGER : GL_RG; break; in getTransferFormat()
78 case TextureFormat::RGB: format = isInt ? GL_RGB_INTEGER : GL_RGB; break; in getTransferFormat()
79 case TextureFormat::RGBA: format = isInt ? GL_RGBA_INTEGER : GL_RGBA; break; in getTransferFormat()
80 case TextureFormat::sR: format = GL_RED; break; in getTransferFormat()
81 case TextureFormat::sRG: format = GL_RG; break; in getTransferFormat()
82 case TextureFormat::sRGB: format = GL_RGB; break; in getTransferFormat()
83 case TextureFormat::sRGBA: format = GL_RGBA; break; in getTransferFormat()
84 case TextureFormat::D: format = GL_DEPTH_COMPONENT; break; in getTransferFormat()
85 case TextureFormat::DS: format = GL_DEPTH_STENCIL; break; in getTransferFormat()
86 case TextureFormat::S: format = GL_STENCIL_INDEX; break; in getTransferFormat()
88 case TextureFormat::BGRA: in getTransferFormat()
99 case TextureFormat::SNORM_INT8: type = GL_BYTE; break; in getTransferFormat()
100 case TextureFormat::SNORM_INT16: type = GL_SHORT; break; in getTransferFormat()
101 case TextureFormat::UNORM_INT8: type = GL_UNSIGNED_BYTE; break; in getTransferFormat()
102 case TextureFormat::UNORM_INT16: type = GL_UNSIGNED_SHORT; break; in getTransferFormat()
103 case TextureFormat::UNORM_SHORT_565: type = GL_UNSIGNED_SHORT_5_6_5; break; in getTransferFormat()
104 case TextureFormat::UNORM_SHORT_4444: type = GL_UNSIGNED_SHORT_4_4_4_4; break; in getTransferFormat()
105 case TextureFormat::UNORM_SHORT_5551: type = GL_UNSIGNED_SHORT_5_5_5_1; break; in getTransferFormat()
106 case TextureFormat::SIGNED_INT8: type = GL_BYTE; break; in getTransferFormat()
107 case TextureFormat::SIGNED_INT16: type = GL_SHORT; break; in getTransferFormat()
108 case TextureFormat::SIGNED_INT32: type = GL_INT; break; in getTransferFormat()
109 case TextureFormat::UNSIGNED_INT8: type = GL_UNSIGNED_BYTE; break; in getTransferFormat()
110 case TextureFormat::UNSIGNED_INT16: type = GL_UNSIGNED_SHORT; break; in getTransferFormat()
111 case TextureFormat::UNSIGNED_INT32: type = GL_UNSIGNED_INT; break; in getTransferFormat()
112 case TextureFormat::FLOAT: type = GL_FLOAT; break; in getTransferFormat()
113 case TextureFormat::UNORM_INT_101010: type = GL_UNSIGNED_INT_2_10_10_10_REV; break; in getTransferFormat()
114 case TextureFormat::UNORM_INT_1010102_REV: type = GL_UNSIGNED_INT_2_10_10_10_REV; break; in getTransferFormat()
115 case TextureFormat::UNSIGNED_INT_1010102_REV: type = GL_UNSIGNED_INT_2_10_10_10_REV; break; in getTransferFormat()
116 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: type = GL_UNSIGNED_INT_10F_11F_11F_REV; break; in getTransferFormat()
117 case TextureFormat::UNSIGNED_INT_999_E5_REV: type = GL_UNSIGNED_INT_5_9_9_9_REV; break; in getTransferFormat()
118 case TextureFormat::HALF_FLOAT: type = GL_HALF_FLOAT; break; in getTransferFormat()
119 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: type = GL_FLOAT_32_UNSIGNED_INT_24_8_REV; break; in getTransferFormat()
120 case TextureFormat::UNSIGNED_INT_24_8: type = texFormat.order == TextureFormat::D in getTransferFormat()
140 deUint32 getInternalFormat (tcu::TextureFormat texFormat) in getInternalFormat()
142 DE_STATIC_ASSERT(tcu::TextureFormat::CHANNELORDER_LAST < (1<<16)); in getInternalFormat()
143 DE_STATIC_ASSERT(tcu::TextureFormat::CHANNELTYPE_LAST < (1<<16)); in getInternalFormat()
146 #define FMT_CASE(ORDER, TYPE) PACK_FMT(tcu::TextureFormat::ORDER, tcu::TextureFormat::TYPE) in getInternalFormat()
396 static tcu::TextureFormat::ChannelType mapGLChannelType (deUint32 dataType, bool normalized) in mapGLChannelType()
399 using tcu::TextureFormat; in mapGLChannelType()
403 …case GL_UNSIGNED_BYTE: return normalized ? TextureFormat::UNORM_INT8 : TextureFormat::UNSIGNED… in mapGLChannelType()
404 case GL_BYTE: return normalized ? TextureFormat::SNORM_INT8 : TextureFormat::SIGNED_INT8; in mapGLChannelType()
405 …case GL_UNSIGNED_SHORT: return normalized ? TextureFormat::UNORM_INT16 : TextureFormat::UNSIGN… in mapGLChannelType()
406 case GL_SHORT: return normalized ? TextureFormat::SNORM_INT16 : TextureFormat::SIGNED_INT16; in mapGLChannelType()
407 …case GL_UNSIGNED_INT: return normalized ? TextureFormat::UNORM_INT32 : TextureFormat::UNSIGNED… in mapGLChannelType()
408 case GL_INT: return normalized ? TextureFormat::SNORM_INT32 : TextureFormat::SIGNED_INT32; in mapGLChannelType()
409 case GL_FLOAT: return TextureFormat::FLOAT; in mapGLChannelType()
410 case GL_UNSIGNED_SHORT_4_4_4_4: return TextureFormat::UNORM_SHORT_4444; in mapGLChannelType()
411 case GL_UNSIGNED_SHORT_5_5_5_1: return TextureFormat::UNORM_SHORT_5551; in mapGLChannelType()
412 case GL_UNSIGNED_SHORT_5_6_5: return TextureFormat::UNORM_SHORT_565; in mapGLChannelType()
413 case GL_HALF_FLOAT: return TextureFormat::HALF_FLOAT; in mapGLChannelType()
414 …_UNSIGNED_INT_2_10_10_10_REV: return normalized ? TextureFormat::UNORM_INT_1010102_REV : TextureFo… in mapGLChannelType()
415 case GL_UNSIGNED_INT_10F_11F_11F_REV: return TextureFormat::UNSIGNED_INT_11F_11F_10F_REV; in mapGLChannelType()
416 case GL_UNSIGNED_INT_24_8: return TextureFormat::UNSIGNED_INT_24_8; in mapGLChannelType()
417 case GL_FLOAT_32_UNSIGNED_INT_24_8_REV: return TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV; in mapGLChannelType()
418 case GL_UNSIGNED_INT_5_9_9_9_REV: return TextureFormat::UNSIGNED_INT_999_E5_REV; in mapGLChannelType()
421 case GL_HALF_FLOAT_OES: return TextureFormat::HALF_FLOAT; in mapGLChannelType()
425 return TextureFormat::CHANNELTYPE_LAST; in mapGLChannelType()
438 tcu::TextureFormat mapGLTransferFormat (deUint32 format, deUint32 dataType) in mapGLTransferFormat()
440 using tcu::TextureFormat; in mapGLTransferFormat()
443 case GL_ALPHA: return TextureFormat(TextureFormat::A, mapGLChannelType(dataType, true)); in mapGLTransferFormat()
444 case GL_LUMINANCE: return TextureFormat(TextureFormat::L, mapGLChannelType(dataType, true)); in mapGLTransferFormat()
445 …case GL_LUMINANCE_ALPHA: return TextureFormat(TextureFormat::LA, mapGLChannelType(dataType, true)… in mapGLTransferFormat()
446 case GL_RGB: return TextureFormat(TextureFormat::RGB, mapGLChannelType(dataType, true)); in mapGLTransferFormat()
447 case GL_RGBA: return TextureFormat(TextureFormat::RGBA, mapGLChannelType(dataType, true)); in mapGLTransferFormat()
448 case GL_BGRA: return TextureFormat(TextureFormat::BGRA, mapGLChannelType(dataType, true)); in mapGLTransferFormat()
449 case GL_RG: return TextureFormat(TextureFormat::RG, mapGLChannelType(dataType, true)); in mapGLTransferFormat()
450 case GL_RED: return TextureFormat(TextureFormat::R, mapGLChannelType(dataType, true)); in mapGLTransferFormat()
451 …case GL_RGBA_INTEGER: return TextureFormat(TextureFormat::RGBA, mapGLChannelType(dataType, false)… in mapGLTransferFormat()
452 case GL_RGB_INTEGER: return TextureFormat(TextureFormat::RGB, mapGLChannelType(dataType, false)); in mapGLTransferFormat()
453 case GL_RG_INTEGER: return TextureFormat(TextureFormat::RG, mapGLChannelType(dataType, false)); in mapGLTransferFormat()
454 case GL_RED_INTEGER: return TextureFormat(TextureFormat::R, mapGLChannelType(dataType, false)); in mapGLTransferFormat()
455 case GL_SRGB: return TextureFormat(TextureFormat::sRGB, mapGLChannelType(dataType, false)); in mapGLTransferFormat()
456 …case GL_SRGB_ALPHA: return TextureFormat(TextureFormat::sRGBA, mapGLChannelType(dataType, false)… in mapGLTransferFormat()
458 …case GL_DEPTH_COMPONENT: return TextureFormat(TextureFormat::D, mapGLChannelType(dataType, true)); in mapGLTransferFormat()
459 …case GL_DEPTH_STENCIL: return TextureFormat(TextureFormat::DS, mapGLChannelType(dataType, true)); in mapGLTransferFormat()
474 tcu::TextureFormat mapGLInternalFormat (deUint32 internalFormat) in mapGLInternalFormat()
476 using tcu::TextureFormat; in mapGLInternalFormat()
479 case GL_RGB5_A1: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_SHORT_5551); in mapGLInternalFormat()
480 case GL_RGBA4: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_SHORT_4444); in mapGLInternalFormat()
481 case GL_RGB565: return TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_SHORT_565); in mapGLInternalFormat()
482 case GL_DEPTH_COMPONENT16: return TextureFormat(TextureFormat::D, TextureFormat::UNORM_INT16); in mapGLInternalFormat()
483 case GL_STENCIL_INDEX8: return TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8); in mapGLInternalFormat()
485 case GL_RGBA32F: return TextureFormat(TextureFormat::RGBA, TextureFormat::FLOAT); in mapGLInternalFormat()
486 case GL_RGBA32I: return TextureFormat(TextureFormat::RGBA, TextureFormat::SIGNED_INT32); in mapGLInternalFormat()
487 case GL_RGBA32UI: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT32); in mapGLInternalFormat()
488 case GL_RGBA16: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT16); in mapGLInternalFormat()
489 case GL_RGBA16_SNORM: return TextureFormat(TextureFormat::RGBA, TextureFormat::SNORM_INT16); in mapGLInternalFormat()
490 case GL_RGBA16F: return TextureFormat(TextureFormat::RGBA, TextureFormat::HALF_FLOAT); in mapGLInternalFormat()
491 case GL_RGBA16I: return TextureFormat(TextureFormat::RGBA, TextureFormat::SIGNED_INT16); in mapGLInternalFormat()
492 case GL_RGBA16UI: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT16); in mapGLInternalFormat()
493 case GL_RGBA8: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8); in mapGLInternalFormat()
494 case GL_RGBA8I: return TextureFormat(TextureFormat::RGBA, TextureFormat::SIGNED_INT8); in mapGLInternalFormat()
495 case GL_RGBA8UI: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT8); in mapGLInternalFormat()
496 case GL_SRGB8_ALPHA8: return TextureFormat(TextureFormat::sRGBA, TextureFormat::UNORM_INT8); in mapGLInternalFormat()
497 …case GL_RGB10_A2: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT_1010102_REV… in mapGLInternalFormat()
498 …case GL_RGB10_A2UI: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT_101010… in mapGLInternalFormat()
499 case GL_RGBA8_SNORM: return TextureFormat(TextureFormat::RGBA, TextureFormat::SNORM_INT8); in mapGLInternalFormat()
501 case GL_RGB8: return TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_INT8); in mapGLInternalFormat()
502 …case GL_R11F_G11F_B10F: return TextureFormat(TextureFormat::RGB, TextureFormat::UNSIGNED_INT_11F_… in mapGLInternalFormat()
503 case GL_RGB32F: return TextureFormat(TextureFormat::RGB, TextureFormat::FLOAT); in mapGLInternalFormat()
504 case GL_RGB32I: return TextureFormat(TextureFormat::RGB, TextureFormat::SIGNED_INT32); in mapGLInternalFormat()
505 case GL_RGB32UI: return TextureFormat(TextureFormat::RGB, TextureFormat::UNSIGNED_INT32); in mapGLInternalFormat()
506 case GL_RGB16: return TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_INT16); in mapGLInternalFormat()
507 case GL_RGB16_SNORM: return TextureFormat(TextureFormat::RGB, TextureFormat::SNORM_INT16); in mapGLInternalFormat()
508 case GL_RGB16F: return TextureFormat(TextureFormat::RGB, TextureFormat::HALF_FLOAT); in mapGLInternalFormat()
509 case GL_RGB16I: return TextureFormat(TextureFormat::RGB, TextureFormat::SIGNED_INT16); in mapGLInternalFormat()
510 case GL_RGB16UI: return TextureFormat(TextureFormat::RGB, TextureFormat::UNSIGNED_INT16); in mapGLInternalFormat()
511 case GL_RGB8_SNORM: return TextureFormat(TextureFormat::RGB, TextureFormat::SNORM_INT8); in mapGLInternalFormat()
512 case GL_RGB8I: return TextureFormat(TextureFormat::RGB, TextureFormat::SIGNED_INT8); in mapGLInternalFormat()
513 case GL_RGB8UI: return TextureFormat(TextureFormat::RGB, TextureFormat::UNSIGNED_INT8); in mapGLInternalFormat()
514 case GL_SRGB8: return TextureFormat(TextureFormat::sRGB, TextureFormat::UNORM_INT8); in mapGLInternalFormat()
515 …case GL_RGB9_E5: return TextureFormat(TextureFormat::RGB, TextureFormat::UNSIGNED_INT_999_E5_REV… in mapGLInternalFormat()
516 case GL_RGB10: return TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_INT_1010102_REV); in mapGLInternalFormat()
518 case GL_RG32F: return TextureFormat(TextureFormat::RG, TextureFormat::FLOAT); in mapGLInternalFormat()
519 case GL_RG32I: return TextureFormat(TextureFormat::RG, TextureFormat::SIGNED_INT32); in mapGLInternalFormat()
520 case GL_RG32UI: return TextureFormat(TextureFormat::RG, TextureFormat::UNSIGNED_INT32); in mapGLInternalFormat()
521 case GL_RG16: return TextureFormat(TextureFormat::RG, TextureFormat::UNORM_INT16); in mapGLInternalFormat()
522 case GL_RG16_SNORM: return TextureFormat(TextureFormat::RG, TextureFormat::SNORM_INT16); in mapGLInternalFormat()
523 case GL_RG16F: return TextureFormat(TextureFormat::RG, TextureFormat::HALF_FLOAT); in mapGLInternalFormat()
524 case GL_RG16I: return TextureFormat(TextureFormat::RG, TextureFormat::SIGNED_INT16); in mapGLInternalFormat()
525 case GL_RG16UI: return TextureFormat(TextureFormat::RG, TextureFormat::UNSIGNED_INT16); in mapGLInternalFormat()
526 case GL_RG8: return TextureFormat(TextureFormat::RG, TextureFormat::UNORM_INT8); in mapGLInternalFormat()
527 case GL_RG8I: return TextureFormat(TextureFormat::RG, TextureFormat::SIGNED_INT8); in mapGLInternalFormat()
528 case GL_RG8UI: return TextureFormat(TextureFormat::RG, TextureFormat::UNSIGNED_INT8); in mapGLInternalFormat()
529 case GL_RG8_SNORM: return TextureFormat(TextureFormat::RG, TextureFormat::SNORM_INT8); in mapGLInternalFormat()
530 case GL_SRG8_EXT: return TextureFormat(TextureFormat::sRG, TextureFormat::UNORM_INT8); in mapGLInternalFormat()
532 case GL_R32F: return TextureFormat(TextureFormat::R, TextureFormat::FLOAT); in mapGLInternalFormat()
533 case GL_R32I: return TextureFormat(TextureFormat::R, TextureFormat::SIGNED_INT32); in mapGLInternalFormat()
534 case GL_R32UI: return TextureFormat(TextureFormat::R, TextureFormat::UNSIGNED_INT32); in mapGLInternalFormat()
535 case GL_R16: return TextureFormat(TextureFormat::R, TextureFormat::UNORM_INT16); in mapGLInternalFormat()
536 case GL_R16_SNORM: return TextureFormat(TextureFormat::R, TextureFormat::SNORM_INT16); in mapGLInternalFormat()
537 case GL_R16F: return TextureFormat(TextureFormat::R, TextureFormat::HALF_FLOAT); in mapGLInternalFormat()
538 case GL_R16I: return TextureFormat(TextureFormat::R, TextureFormat::SIGNED_INT16); in mapGLInternalFormat()
539 case GL_R16UI: return TextureFormat(TextureFormat::R, TextureFormat::UNSIGNED_INT16); in mapGLInternalFormat()
540 case GL_R8: return TextureFormat(TextureFormat::R, TextureFormat::UNORM_INT8); in mapGLInternalFormat()
541 case GL_R8I: return TextureFormat(TextureFormat::R, TextureFormat::SIGNED_INT8); in mapGLInternalFormat()
542 case GL_R8UI: return TextureFormat(TextureFormat::R, TextureFormat::UNSIGNED_INT8); in mapGLInternalFormat()
543 case GL_R8_SNORM: return TextureFormat(TextureFormat::R, TextureFormat::SNORM_INT8); in mapGLInternalFormat()
544 case GL_SR8_EXT: return TextureFormat(TextureFormat::sR, TextureFormat::UNORM_INT8); in mapGLInternalFormat()
546 case GL_DEPTH_COMPONENT32F: return TextureFormat(TextureFormat::D, TextureFormat::FLOAT); in mapGLInternalFormat()
547 …case GL_DEPTH_COMPONENT24: return TextureFormat(TextureFormat::D, TextureFormat::UNSIGNED_INT_24_… in mapGLInternalFormat()
548 case GL_DEPTH_COMPONENT32: return TextureFormat(TextureFormat::D, TextureFormat::UNSIGNED_INT32); in mapGLInternalFormat()
549 …case GL_DEPTH32F_STENCIL8: return TextureFormat(TextureFormat::DS, TextureFormat::FLOAT_UNSIGNED_… in mapGLInternalFormat()
550 …case GL_DEPTH24_STENCIL8: return TextureFormat(TextureFormat::DS, TextureFormat::UNSIGNED_INT_24_… in mapGLInternalFormat()
861 DataType getSampler1DType (tcu::TextureFormat format) in getSampler1DType()
863 using tcu::TextureFormat; in getSampler1DType()
865 if (format.order == TextureFormat::D || format.order == TextureFormat::DS) in getSampler1DType()
868 if (format.order == TextureFormat::S) in getSampler1DType()
897 DataType getSampler2DType (tcu::TextureFormat format) in getSampler2DType()
899 using tcu::TextureFormat; in getSampler2DType()
901 if (format.order == TextureFormat::D || format.order == TextureFormat::DS) in getSampler2DType()
904 if (format.order == TextureFormat::S) in getSampler2DType()
933 DataType getSamplerCubeType (tcu::TextureFormat format) in getSamplerCubeType()
935 using tcu::TextureFormat; in getSamplerCubeType()
937 if (format.order == TextureFormat::D || format.order == TextureFormat::DS) in getSamplerCubeType()
940 if (format.order == TextureFormat::S) in getSamplerCubeType()
969 DataType getSampler1DArrayType (tcu::TextureFormat format) in getSampler1DArrayType()
971 using tcu::TextureFormat; in getSampler1DArrayType()
973 if (format.order == TextureFormat::D || format.order == TextureFormat::DS) in getSampler1DArrayType()
976 if (format.order == TextureFormat::S) in getSampler1DArrayType()
1005 DataType getSampler2DArrayType (tcu::TextureFormat format) in getSampler2DArrayType()
1007 using tcu::TextureFormat; in getSampler2DArrayType()
1009 if (format.order == TextureFormat::D || format.order == TextureFormat::DS) in getSampler2DArrayType()
1012 if (format.order == TextureFormat::S) in getSampler2DArrayType()
1041 DataType getSampler3DType (tcu::TextureFormat format) in getSampler3DType()
1043 using tcu::TextureFormat; in getSampler3DType()
1045 if (format.order == TextureFormat::D || format.order == TextureFormat::DS) in getSampler3DType()
1048 if (format.order == TextureFormat::S) in getSampler3DType()
1077 DataType getSamplerCubeArrayType (tcu::TextureFormat format) in getSamplerCubeArrayType()
1079 using tcu::TextureFormat; in getSamplerCubeArrayType()
1081 if (format.order == TextureFormat::D || format.order == TextureFormat::DS) in getSamplerCubeArrayType()
1084 if (format.order == TextureFormat::S) in getSamplerCubeArrayType()