Lines Matching defs:src

454 	void				setData					(const ConstPixelBufferAccess& src, int width, int height, deUint32 internalFormat, bool useMipmap);
457 void setSubData (const ConstPixelBufferAccess& src, int xOff, int yOff, int width, int height) const;
510 void Texture::setData (const ConstPixelBufferAccess& src, const int width, const int height, const deUint32 internalFormat, const bool useMipmap)
515 const TextureFormat& format = src.getFormat();
523 DE_ASSERT(src.getRowPitch() == format.getPixelSize()*src.getWidth());
525 DE_ASSERT(width <= src.getWidth() && height <= src.getHeight());
539 glTexImage2D(GL_TEXTURE_2D, level, internalFormat, levelWid, levelHei, 0, transfer.format, transfer.dataType, src.getDataPtr());
553 glTexImage2D(cubeFaceToGLFace((CubeFace)face), level, internalFormat, levelWid, levelHei, 0, transfer.format, transfer.dataType, src.getDataPtr());
560 void Texture::setSubData (const ConstPixelBufferAccess& src, const int xOff, const int yOff, const int width, const int height) const
562 const TextureFormat& format = src.getFormat();
565 DE_ASSERT(src.getRowPitch() == format.getPixelSize()*src.getWidth());
567 DE_ASSERT(width <= src.getWidth() && height <= src.getHeight());
575 glTexSubImage2D(GL_TEXTURE_2D, level, xOff>>level, yOff>>level, de::max(1, width>>level), de::max(1, height>>level), transfer.format, transfer.dataType, src.getDataPtr());
583 glTexSubImage2D(cubeFaceToGLFace((CubeFace)face), level, xOff>>level, yOff>>level, de::max(1, width>>level), de::max(1, height>>level), transfer.format, transfer.dataType, src.getDataPtr());
629 void setData (const vector<T>& src, const deUint32 target, const deUint32 usage) { setData(&src[0], (int)(src.size()*sizeof(T)), target, usage); }
630 void setData (const void* src, int size, deUint32 target, deUint32 usage);
634 void setSubData (const vector<T>& src, const int offsetElems, const int numElems, const deUint32 target) { setSubData(&src[offsetElems], offsetElems*(int)sizeof(T), numElems*(int)sizeof(T), target); }
635 void setSubData (const void* src, int offsetBytes, int sizeBytes, deUint32 target) const;
640 int getApproxMemUsageDiff (const vector<T>& src) const { return getApproxMemUsageDiff((int)(src.size()*sizeof(T))); }
664 void Buffer::setData (const void* const src, const int size, const deUint32 target, const deUint32 usage)
667 glBufferData(target, size, src, usage);
673 void Buffer::setSubData (const void* const src, const int offsetBytes, const int sizeBytes, const deUint32 target) const
676 glBufferSubData(target, offsetBytes, sizeBytes, src);