Lines Matching refs:format

41 static inline int computePixelStore (const tcu::TextureFormat& format)
43 int pixelSize = format.getPixelSize();
52 Texture1D::Texture1D (const RenderContext& context, deUint32 format, deUint32 dataType, int width)
54 , m_format (format)
55 , m_refTexture (mapGLTransferFormat(format, dataType), width)
97 gl.texImage1D(GL_TEXTURE_1D, levelNdx, m_format, access.getWidth(), 0 /* border */, transferFormat.format, transferFormat.dataType, access.getDataPtr());
105 Texture2D::Texture2D (const RenderContext& context, deUint32 format, deUint32 dataType, int width, int height)
108 , m_format (format)
109 , m_refTexture (mapGLTransferFormat(format, dataType), width, height, isES2Context(context.getType()))
139 TCU_THROW(NotSupportedError, "Compressed texture format not supported");
181 gl.texImage2D(GL_TEXTURE_2D, levelNdx, m_format, access.getWidth(), access.getHeight(), 0 /* border */, transferFormat.format, transferFormat.dataType, access.getDataPtr());
272 TCU_FAIL("Unsupported file format");
314 gl.texSubImage2D(GL_TEXTURE_2D, levelNdx, 0, 0, access.getWidth(), access.getHeight(), transferFormat.format, transferFormat.dataType, access.getDataPtr());
334 throw tcu::NotSupportedError("Compressed texture format not supported", "", __FILE__, __LINE__);
350 TextureCube::TextureCube (const RenderContext& context, deUint32 format, deUint32 dataType, int size)
353 , m_format (format)
354 , m_refTexture (mapGLTransferFormat(format, dataType), size, isES2Context(context.getType()))
402 gl.texImage2D(getGLCubeFace((tcu::CubeFace)face), levelNdx, m_format, access.getWidth(), access.getHeight(), 0 /* border */, transferFormat.format, transferFormat.dataType, access.getDataPtr());
458 TCU_FAIL("Unsupported file format");
475 Texture1DArray::Texture1DArray (const RenderContext& context, deUint32 format, deUint32 dataType, int width, int numLevels)
477 , m_format (format)
478 , m_refTexture (mapGLTransferFormat(format, dataType), width, numLevels)
521 gl.texImage2D(GL_TEXTURE_1D_ARRAY, levelNdx, m_format, access.getWidth(), access.getHeight(), 0 /* border */, transferFormat.format, transferFormat.dataType, access.getDataPtr());
529 Texture2DArray::Texture2DArray (const RenderContext& context, deUint32 format, deUint32 dataType, int width, int height, int numLevels)
532 , m_format (format)
533 , m_refTexture (mapGLTransferFormat(format, dataType), width, height, numLevels)
565 throw tcu::NotSupportedError("Compressed texture format not supported", "", __FILE__, __LINE__);
609 gl.texImage3D(GL_TEXTURE_2D_ARRAY, levelNdx, m_format, access.getWidth(), access.getHeight(), access.getDepth(), 0 /* border */, transferFormat.format, transferFormat.dataType, access.getDataPtr());
645 Texture3D::Texture3D (const RenderContext& context, deUint32 format, deUint32 dataType, int width, int height, int depth)
648 , m_format (format)
649 , m_refTexture (mapGLTransferFormat(format, dataType), width, height, depth)
685 throw tcu::NotSupportedError("Compressed texture format not supported", "", __FILE__, __LINE__);
731 gl.texImage3D(GL_TEXTURE_3D, levelNdx, m_format, access.getWidth(), access.getHeight(), access.getDepth(), 0 /* border */, transferFormat.format, transferFormat.dataType, access.getDataPtr());
770 TextureCubeArray::TextureCubeArray (const RenderContext& context, deUint32 format, deUint32 dataType, int size, int numLayers)
772 , m_format (format)
773 , m_refTexture (mapGLTransferFormat(format, dataType), size, numLayers)
822 gl.texImage3D(GL_TEXTURE_CUBE_MAP_ARRAY, levelNdx, m_format, access.getWidth(), access.getHeight(), access.getDepth(), 0 /* border */, transferFormat.format, transferFormat.dataType, access.getDataPtr());
922 const tcu::TextureFormat format = mapGLInternalFormat(m_format);
924 const int bufferLengthPixels = (int)bufferLengthBytes / format.getPixelSize();
926 return tcu::PixelBufferAccess(format,