Lines Matching full:rgba
305 case TextureFormat::RGBA: return 4;
558 case TextureFormat::RGBA:
607 return format.order == TextureFormat::RGBA || format.order == TextureFormat::BGRA;
619 return format.order == TextureFormat::RGBA || format.order == TextureFormat::BGRA;
725 static const TextureSwizzle RGBA = {{ TextureSwizzle::CHANNEL_0, TextureSwizzle::CHANNEL_1, TextureSwizzle::CHANNEL_2, TextureSwizzle::CHANNEL_3 }};
742 case TextureFormat::RGBA: return RGBA;
749 case TextureFormat::sRGBA: return RGBA;
779 static const TextureSwizzle RGBA = {{ TextureSwizzle::CHANNEL_0, TextureSwizzle::CHANNEL_1, TextureSwizzle::CHANNEL_2, TextureSwizzle::CHANNEL_3 }};
796 case TextureFormat::RGBA: return RGBA;
803 case TextureFormat::sRGBA: return RGBA;
915 (src == TextureFormat::RGBA && dst == TextureFormat::BGRA) ||
916 (src == TextureFormat::BGRA && dst == TextureFormat::RGBA));
934 if (m_format.order == TextureFormat::RGBA || m_format.order == TextureFormat::sRGBA)
957 case TextureFormat::UNORM_SHORT_4444: return swizzleRB( Vec4(UN16(12, 4), UN16( 8, 4), UN16( 4, 4), UN16( 0, 4)), m_format.order, TextureFormat::RGBA);
958 case TextureFormat::UNSIGNED_SHORT_4444: return swizzleRB(UVec4(UI16(12, 4), UI16( 8, 4), UI16( 4, 4), UI16( 0, 4)), m_format.order, TextureFormat::RGBA).cast<float>();
959 case TextureFormat::UNORM_SHORT_5551: return swizzleRB( Vec4(UN16(11, 5), UN16( 6, 5), UN16( 1, 5), UN16( 0, 1)), m_format.order, TextureFormat::RGBA);
960 case TextureFormat::UNSIGNED_SHORT_5551: return swizzleRB(UVec4(UI16(11, 5), UI16( 6, 5), UI16( 1, 5), UI16( 0, 1)), m_format.order, TextureFormat::RGBA).cast<float>();
962 case TextureFormat::UNORM_INT_1010102_REV: return swizzleRB( Vec4(UN32( 0, 10), UN32(10, 10), UN32(20, 10), UN32(30, 2)), m_format.order, TextureFormat::RGBA);
963 case TextureFormat::SNORM_INT_1010102_REV: return swizzleRB( Vec4(SN32( 0, 10), SN32(10, 10), SN32(20, 10), SN32(30, 2)), m_format.order, TextureFormat::RGBA);
964 case TextureFormat::UNSIGNED_INT_1010102_REV: return swizzleRB( UVec4(UI32(0, 10), UI32(10, 10), UI32(20, 10), UI32(30, 2)), m_format.order, TextureFormat::RGBA).cast<float>();
965 case TextureFormat::SIGNED_INT_1010102_REV: return swizzleRB( UVec4(SI32(0, 10), SI32(10, 10), SI32(20, 10), SI32(30, 2)), m_format.order, TextureFormat::RGBA).cast<float>();
970 return Vec4(UN16(15, 1), UN16(10, 5), UN16(5, 5), UN16(0, 5)).swizzle(1,2,3,0); // ARGB -> RGBA
1034 if (m_format.order == TextureFormat::RGBA || m_format.order == TextureFormat::sRGBA)
1053 case TextureFormat::UNORM_SHORT_4444: return swizzleRB(UVec4(U16(12, 4), U16( 8, 4), U16( 4, 4), U16( 0, 4)).cast<int>(), m_format.order, TextureFormat::RGBA);
1055 case TextureFormat::UNORM_SHORT_5551: return swizzleRB(UVec4(U16(11, 5), U16( 6, 5), U16( 1, 5), U16( 0, 1)).cast<int>(), m_format.order, TextureFormat::RGBA);
1058 case TextureFormat::UNSIGNED_INT_1010102_REV: return swizzleRB(UVec4(U32( 0, 10), U32(10, 10), U32(20, 10), U32(30, 2)), m_format.order, TextureFormat::RGBA).cast<int>();
1060 case TextureFormat::SIGNED_INT_1010102_REV: return swizzleRB(IVec4(S32( 0, 10), S32(10, 10), S32(20, 10), S32(30, 2)), m_format.order, TextureFormat::RGBA);
1064 return UVec4(U16(15, 1), U16(10, 5), U16(5, 5), U16(0, 5)).cast<int>().swizzle(1,2,3,0); // ARGB -> RGBA
1200 if (m_format.order == TextureFormat::RGBA || m_format.order == TextureFormat::sRGBA)
1246 const Vec4 swizzled = swizzleRB(color, TextureFormat::RGBA, m_format.order);
1253 const UVec4 swizzled = swizzleRB(color.cast<deUint32>(), TextureFormat::RGBA, m_format.order);
1260 const Vec4 swizzled = swizzleRB(color, TextureFormat::RGBA, m_format.order);
1267 const Vec4 swizzled = color.swizzle(3,0,1,2); // RGBA -> ARGB
1274 const UVec4 swizzled = swizzleRB(color.cast<deUint32>(), TextureFormat::RGBA, m_format.order);
1281 const Vec4 u = swizzleRB(color, TextureFormat::RGBA, m_format.order);
1288 const Vec4 u = swizzleRB(color, TextureFormat::RGBA, m_format.order);
1295 const UVec4 u = swizzleRB(color.cast<deUint32>(), TextureFormat::RGBA, m_format.order);
1302 const IVec4 u = swizzleRB(color.cast<deInt32>(), TextureFormat::RGBA, m_format.order);
1350 if (m_format.order == TextureFormat::RGBA || m_format.order == TextureFormat::sRGBA)
1389 const IVec4 swizzled = swizzleRB(color, TextureFormat::RGBA, m_format.order);
1397 const IVec4 swizzled = swizzleRB(color, TextureFormat::RGBA, m_format.order);
1404 const IVec4 swizzled = color.swizzle(3,0,1,2); // RGBA -> ARGB
1412 const IVec4 swizzled = swizzleRB(color, TextureFormat::RGBA, m_format.order);
1420 const IVec4 swizzled = swizzleRB(color, TextureFormat::RGBA, m_format.order);
3745 "RGBA",