Add initial implementation for PixelTransfer11, which will enable GPU buffer to texture and texture to buffer copies.
This is necessary for fast implementation of ES3 PBOs.
TRAC #23841
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
diff --git a/src/libGLESv2/formatutils.cpp b/src/libGLESv2/formatutils.cpp
index 0526af4..73a404f 100644
--- a/src/libGLESv2/formatutils.cpp
+++ b/src/libGLESv2/formatutils.cpp
@@ -35,7 +35,7 @@
typedef std::pair<FormatTypePair, FormatTypeInfo> FormatPair;
typedef std::map<FormatTypePair, FormatTypeInfo> FormatMap;
-// A helper function to insert data into the D3D11LoadFunctionMap with fewer characters.
+// A helper function to insert data into the format map with fewer characters.
static inline void InsertFormatMapping(FormatMap *map, GLenum format, GLenum type, GLint internalFormat, ColorWriteFunction writeFunc)
{
map->insert(FormatPair(FormatTypePair(format, type), FormatTypeInfo(internalFormat, writeFunc)));
@@ -1584,4 +1584,9 @@
return (iter != formats.end()) ? iter->second.mColorWriteFunction : NULL;
}
+bool IsFastCopyBufferToTextureSupported(GLint internalFormat, GLuint clientVersion)
+{
+ return false;
+}
+
}