Lines Matching defs:format
182 TCU_FAIL("Can't map pixel format to texture format");
207 TCU_FAIL("Can't map depth buffer format");
220 TCU_FAIL("Can't map depth buffer format");
949 tcu::ConstPixelBufferAccess ReferenceContext::getUnpack2DAccess (const tcu::TextureFormat& format, int width, int height, const void* data)
951 int pixelSize = format.getPixelSize();
956 return tcu::ConstPixelBufferAccess(format, width, height, 1, rowPitch, 0, ptr);
959 tcu::ConstPixelBufferAccess ReferenceContext::getUnpack3DAccess (const tcu::TextureFormat& format, int width, int height, int depth, const void* data)
961 int pixelSize = format.getPixelSize();
968 return tcu::ConstPixelBufferAccess(format, width, height, depth, rowPitch, slicePitch, ptr);
1017 void ReferenceContext::texImage1D (deUint32 target, int level, deUint32 internalFormat, int width, int border, deUint32 format, deUint32 type, const void* data)
1019 texImage2D(target, level, internalFormat, width, 1, border, format, type, data);
1022 void ReferenceContext::texImage2D (deUint32 target, int level, deUint32 internalFormat, int width, int height, int border, deUint32 format, deUint32 type, const void* data)
1024 texImage3D(target, level, internalFormat, width, height, 1, border, format, type, data);
1041 void ReferenceContext::texImage3D (deUint32 target, int level, deUint32 internalFormat, int width, int height, int depth, int border, deUint32 format, deUint32 type, const void* data)
1052 // Map storage format.
1057 // Map transfer format.
1058 transferFmt = glu::mapGLTransferFormat(format, type);
1297 void ReferenceContext::texSubImage1D (deUint32 target, int level, int xoffset, int width, deUint32 format, deUint32 type, const void* data)
1299 texSubImage2D(target, level, xoffset, 0, width, 1, format, type, data);
1302 void ReferenceContext::texSubImage2D (deUint32 target, int level, int xoffset, int yoffset, int width, int height, deUint32 format, deUint32 type, const void* data)
1304 texSubImage3D(target, level, xoffset, yoffset, 0, width, height, 1, format, type, data);
1307 void ReferenceContext::texSubImage3D (deUint32 target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, deUint32 format, deUint32 type, const void* data)
1314 TextureFormat transferFmt = glu::mapGLTransferFormat(format, type);
1454 // Map storage format.
1502 // Map storage format.
1685 // Map storage format.
1739 // Map storage format.
2330 TextureFormat format = glu::mapGLInternalFormat(internalformat);
2337 RC_IF_ERROR(format.order == TextureFormat::CHANNELORDER_LAST ||
2338 format.type == TextureFormat::CHANNELTYPE_LAST, GL_INVALID_ENUM, RC_RET_VOID);
2340 m_renderbufferBinding->setStorage(format, (int)width, (int)height);
3013 static int getNumStencilBits (const tcu::TextureFormat& format)
3015 switch (format.order)
3018 switch (format.type)
3029 switch (format.type)
4630 void ReferenceContext::readPixels (int x, int y, int width, int height, deUint32 format, deUint32 type, void* data)
4635 // Map transfer format.
4636 transferFmt = glu::mapGLTransferFormat(format, type);
4720 void TextureLevelArray::allocLevel (int level, const tcu::TextureFormat& format, int width, int height, int depth)
4722 const int dataSize = format.getPixelSize()*width*height*depth;
4730 m_access[level] = PixelBufferAccess(format, width, height, depth, m_data[level].getPtr());
4778 void Texture1D::allocLevel (int level, const tcu::TextureFormat& format, int width)
4780 m_levels.allocLevel(level, format, width, 1, 1);
4794 const TextureFormat& format = level0.getFormat();
4806 level.getFormat() != format)
4875 void Texture2D::allocLevel (int level, const tcu::TextureFormat& format, int width, int height)
4877 m_levels.allocLevel(level, format, width, height, 1);
4891 const TextureFormat& format = level0.getFormat();
4906 level.getFormat() != format)
4984 void TextureCube::allocFace (int level, tcu::CubeFace face, const tcu::TextureFormat& format, int width, int height)
4986 m_levels[face].allocLevel(level, format, width, height, 1);
4997 const tcu::TextureFormat& format = getFace(baseLevel, tcu::CUBEFACE_NEGATIVE_X).getFormat();
5018 level.getFormat() != format)
5107 void Texture2DArray::allocLevel (int level, const tcu::TextureFormat& format, int width, int height, int numLayers)
5109 m_levels.allocLevel(level, format, width, height, numLayers);
5123 const TextureFormat& format = level0.getFormat();
5140 level.getFormat() != format)
5212 void TextureCubeArray::allocLevel (int level, const tcu::TextureFormat& format, int width, int height, int numLayers)
5215 m_levels.allocLevel(level, format, width, height, numLayers);
5229 const TextureFormat& format = level0.getFormat();
5246 level.getFormat() != format)
5333 void Texture3D::allocLevel (int level, const tcu::TextureFormat& format, int width, int height, int depth)
5335 m_levels.allocLevel(level, format, width, height, depth);
5349 const TextureFormat& format = level0.getFormat();
5367 level.getFormat() != format)
5441 void Renderbuffer::setStorage (const TextureFormat& format, int width, int height)
5443 m_data.setStorage(format, width, height);