Home | History | Annotate | Download | only in simplereference

Lines Matching refs:TextureFormat

55 using tcu::TextureFormat;
76 return tcu::PixelBufferAccess(TextureFormat(TextureFormat::R, TextureFormat::UNSIGNED_INT8), 0, 0, 0, DE_NULL);
158 tcu::TextureFormat toTextureFormat (const tcu::PixelFormat& pixelFmt)
163 tcu::TextureFormat texFmt;
166 { tcu::PixelFormat(8,8,8,8), tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8) },
167 { tcu::PixelFormat(8,8,8,0), tcu::TextureFormat(tcu::TextureFormat::RGB, tcu::TextureFormat::UNORM_INT8) },
168 { tcu::PixelFormat(4,4,4,4), tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_SHORT_4444) },
169 { tcu::PixelFormat(5,5,5,1), tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_SHORT_5551) },
170 { tcu::PixelFormat(5,6,5,0), tcu::TextureFormat(tcu::TextureFormat::RGB, tcu::TextureFormat::UNORM_SHORT_565) }
182 tcu::TextureFormat toNonSRGBFormat (const tcu::TextureFormat& fmt)
186 case tcu::TextureFormat::sRGB:
187 return tcu::TextureFormat(tcu::TextureFormat::RGB, fmt.type);
188 case tcu::TextureFormat::sRGBA:
189 return tcu::TextureFormat(tcu::TextureFormat::RGBA, fmt.type);
195 tcu::TextureFormat getDepthFormat (int depthBits)
199 case 8: return tcu::TextureFormat(tcu::TextureFormat::D, tcu::TextureFormat::UNORM_INT8);
200 case 16: return tcu::TextureFormat(tcu::TextureFormat::D, tcu::TextureFormat::UNORM_INT16);
201 case 24: return tcu::TextureFormat(tcu::TextureFormat::D, tcu::TextureFormat::UNSIGNED_INT_24_8);
202 case 32: return tcu::TextureFormat(tcu::TextureFormat::D, tcu::TextureFormat::FLOAT);
208 tcu::TextureFormat getStencilFormat (int stencilBits)
212 case 8: return tcu::TextureFormat(tcu::TextureFormat::S, tcu::TextureFormat::UNSIGNED_INT8);
213 case 16: return tcu::TextureFormat(tcu::TextureFormat::S, tcu::TextureFormat::UNSIGNED_INT16);
214 case 24: return tcu::TextureFormat(tcu::TextureFormat::S, tcu::TextureFormat::UNSIGNED_INT_24_8);
215 case 32: return tcu::TextureFormat(tcu::TextureFormat::S, tcu::TextureFormat::UNSIGNED_INT32);
393 m_emptyTex1D.allocLevel(0, tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8), 1);
401 m_emptyTex2D.allocLevel(0, tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8), 1, 1);
411 m_emptyTexCube.allocFace(0, (tcu::CubeFace)face, tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8), 1, 1);
420 m_emptyTex2DArray.allocLevel(0, tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8), 1, 1, 1);
429 m_emptyTex3D.allocLevel(0, tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8), 1, 1, 1);
437 m_emptyTexCubeArray.allocLevel(0, tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8), 1, 1, 6);
929 tcu::ConstPixelBufferAccess ReferenceContext::getUnpack2DAccess (const tcu::TextureFormat& format, int width, int height, const void* data)
939 tcu::ConstPixelBufferAccess ReferenceContext::getUnpack3DAccess (const tcu::TextureFormat& format, int width, int height, int depth, const void* data)
951 static tcu::TextureFormat mapInternalFormat (deUint32 internalFormat)
955 case GL_ALPHA: return TextureFormat(TextureFormat::A, TextureFormat::UNORM_INT8);
956 case GL_LUMINANCE: return TextureFormat(TextureFormat::L, TextureFormat::UNORM_INT8);
957 case GL_LUMINANCE_ALPHA: return TextureFormat(TextureFormat::LA, TextureFormat::UNORM_INT8);
958 case GL_RGB: return TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_INT8);
959 case GL_RGBA: return TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8);
999 TextureFormat storageFmt;
1000 TextureFormat transferFmt;
1007 RC_IF_ERROR(storageFmt.order == TextureFormat::CHANNELORDER_LAST ||
1008 storageFmt.type == TextureFormat::CHANNELTYPE_LAST, GL_INVALID_ENUM, RC_RET_VOID);
1012 RC_IF_ERROR(transferFmt.order == TextureFormat::CHANNELORDER_LAST ||
1013 transferFmt.type == TextureFormat::CHANNELTYPE_LAST, GL_INVALID_ENUM, RC_RET_VOID);
1273 TextureFormat transferFmt = glu::mapGLTransferFormat(format, type);
1274 RC_IF_ERROR(transferFmt.order == TextureFormat::CHANNELORDER_LAST ||
1275 transferFmt.type == TextureFormat::CHANNELTYPE_LAST, GL_INVALID_ENUM, RC_RET_VOID);
1293 if (dst.getFormat().order == tcu::TextureFormat::D || dst.getFormat().order == tcu::TextureFormat::DS)
1312 if (dst.getFormat().order == tcu::TextureFormat::D || dst.getFormat().order == tcu::TextureFormat::DS)
1337 if (dst.getFormat().order == tcu::TextureFormat::D || dst.getFormat().order == tcu::TextureFormat::DS)
1356 if (dst.getFormat().order == tcu::TextureFormat::D || dst.getFormat().order == tcu::TextureFormat::DS)
1375 if (dst.getFormat().order == tcu::TextureFormat::D || dst.getFormat().order == tcu::TextureFormat::DS)
1394 if (dst.getFormat().order == tcu::TextureFormat::D || dst.getFormat().order == tcu::TextureFormat::DS)
1406 TextureFormat storageFmt;
1415 RC_IF_ERROR(storageFmt.order == TextureFormat::CHANNELORDER_LAST ||
1416 storageFmt.type == TextureFormat::CHANNELTYPE_LAST, GL_INVALID_ENUM, RC_RET_VOID);
1454 TextureFormat storageFmt;
1463 RC_IF_ERROR(storageFmt.order == TextureFormat::CHANNELORDER_LAST ||
1464 storageFmt.type == TextureFormat::CHANNELTYPE_LAST, GL_INVALID_ENUM, RC_RET_VOID);
1639 TextureFormat storageFmt;
1646 RC_IF_ERROR(storageFmt.order == TextureFormat::CHANNELORDER_LAST ||
1647 storageFmt.type == TextureFormat::CHANNELTYPE_LAST, GL_INVALID_ENUM, RC_RET_VOID);
1693 TextureFormat storageFmt;
1700 RC_IF_ERROR(storageFmt.order == TextureFormat::CHANNELORDER_LAST ||
1701 storageFmt.type == TextureFormat::CHANNELTYPE_LAST, GL_INVALID_ENUM, RC_RET_VOID);
2154 tcu::TextureFormat attachmentFormat;
2240 case TextureFormat::R:
2241 case TextureFormat::RG:
2242 case TextureFormat::RGB:
2243 case TextureFormat::RGBA:
2244 case TextureFormat::sRGB:
2245 case TextureFormat::sRGBA:
2250 case TextureFormat::D:
2255 case TextureFormat::S:
2260 case TextureFormat::DS:
2289 TextureFormat format = glu::mapGLInternalFormat(internalformat);
2296 RC_IF_ERROR(format.order == TextureFormat::CHANNELORDER_LAST ||
2297 format.type == TextureFormat::CHANNELTYPE_LAST, GL_INVALID_ENUM, RC_RET_VOID);
2953 static int getNumStencilBits (const tcu::TextureFormat& format)
2957 case tcu::TextureFormat::S:
2960 case tcu::TextureFormat::UNSIGNED_INT8: return 8;
2961 case tcu::TextureFormat::UNSIGNED_INT16: return 16;
2962 case tcu::TextureFormat::UNSIGNED_INT32: return 32;
2968 case tcu::TextureFormat::DS:
2971 case tcu::TextureFormat::UNSIGNED_INT_24_8: return 8;
2972 case tcu::TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return 8;
3007 bool srcIsSRGB = src.raw().getFormat().order == tcu::TextureFormat::sRGB || src.raw().getFormat().order == tcu::TextureFormat::sRGBA;
3008 bool dstIsSRGB = dst.getFormat().order == tcu::TextureFormat::sRGB || dst.getFormat().order == tcu::TextureFormat::sRGBA;
3014 tcu::TextureFormat srcFmt = toNonSRGBFormat(srcRaw.getFormat());
3159 bool srcIsSRGB = src.getFormat().order == tcu::TextureFormat::sRGB || src.getFormat().order == tcu::TextureFormat::sRGBA;
3160 bool dstIsSRGB = dst.getFormat().order == tcu::TextureFormat::sRGB || dst.getFormat().order == tcu::TextureFormat::sRGBA;
3287 bool isSharedDepthStencil = access.raw().getFormat().order == tcu::TextureFormat::DS;
3353 bool isSRGB = colorBuf0.raw().getFormat().order == tcu::TextureFormat::sRGB || colorBuf0.raw().getFormat().order == tcu::TextureFormat::sRGBA;
3374 bool isSharedDepthStencil = depthBuf.raw().getFormat().order != tcu::TextureFormat::D;
3406 bool isSharedDepthStencil = stencilBuf.raw().getFormat().order != tcu::TextureFormat::S;
3502 if (m_sRGBUpdateEnabled && (access.raw().getFormat().order == tcu::TextureFormat::sRGB ||
3503 access.raw().getFormat().order == tcu::TextureFormat::sRGBA))
4614 TextureFormat transferFmt;
4618 RC_IF_ERROR(transferFmt.order == TextureFormat::CHANNELORDER_LAST ||
4619 transferFmt.type == TextureFormat::CHANNELTYPE_LAST, GL_INVALID_ENUM, RC_RET_VOID);
4704 void TextureLevelArray::allocLevel (int level, const tcu::TextureFormat& format, int width, int height, int depth)
4758 void Texture1D::allocLevel (int level, const tcu::TextureFormat& format, int width)
4774 const TextureFormat& format = level0.getFormat();
4854 void Texture2D::allocLevel (int level, const tcu::TextureFormat& format, int width, int height)
4870 const TextureFormat& format = level0.getFormat();
4962 void TextureCube::allocFace (int level, tcu::CubeFace face, const tcu::TextureFormat& format, int width, int height)
4975 const tcu::TextureFormat& format = getFace(baseLevel, tcu::CUBEFACE_NEGATIVE_X).getFormat();
5082 void Texture2DArray::allocLevel (int level, const tcu::TextureFormat& format, int width, int height, int numLayers)
5098 const TextureFormat& format = level0.getFormat();
5186 void TextureCubeArray::allocLevel (int level, const tcu::TextureFormat& format, int width, int height, int numLayers)
5203 const TextureFormat& format = level0.getFormat();
5306 void Texture3D::allocLevel (int level, const tcu::TextureFormat& format, int width, int height, int depth)
5322 const TextureFormat& format = level0.getFormat();
5413 void Renderbuffer::setStorage (const TextureFormat& format, int width, int height)