Adds getStagingTexture to Image11

TRAC #22210 Author: Shannon Woods Signed-off-by: Nicolas Capens Signed-off-by: Daniel Koch git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1650 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent b2151e55
......@@ -43,6 +43,13 @@ bool Image11::isDirty() const
return (mStagingTexture && mDirty);
}
ID3D11Texture2D *Image11::getStagingTexture()
{
createStagingTexture();
return mStagingTexture;
}
bool Image11::updateSurface(TextureStorageInterface2D *storage, int level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height)
{
// TODO - relies on TextureStorage11 implementation
......
......@@ -37,6 +37,7 @@ class Image11 : public Image
static Image11 *makeImage11(Image *img);
virtual bool isDirty() const;
ID3D11Texture2D *getStagingTexture();
virtual bool updateSurface(TextureStorageInterface2D *storage, int level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height);
virtual bool updateSurface(TextureStorageInterfaceCube *storage, int face, int level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment