2 // Copyright (c) 2002-2012 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
7 // Image.h: Defines the rx::Image class, an abstract base class for the
8 // renderer-specific classes which will define the interface to the underlying
9 // surfaces or resources.
11 #ifndef LIBGLESV2_RENDERER_IMAGED3D_H_
12 #define LIBGLESV2_RENDERER_IMAGED3D_H_
14 #include "common/debug.h"
15 #include "libGLESv2/renderer/Image.h"
26 class ImageD3D : public Image
30 virtual ~ImageD3D() {};
32 static ImageD3D *makeImageD3D(Image *img);
34 virtual bool isDirty() const = 0;
36 virtual void setManagedSurface2D(TextureStorage *storage, int level) {};
37 virtual void setManagedSurfaceCube(TextureStorage *storage, int face, int level) {};
38 virtual void setManagedSurface3D(TextureStorage *storage, int level) {};
39 virtual void setManagedSurface2DArray(TextureStorage *storage, int layer, int level) {};
40 virtual bool copyToStorage2D(TextureStorage *storage, int level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height) = 0;
41 virtual bool copyToStorageCube(TextureStorage *storage, int face, int level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height) = 0;
42 virtual bool copyToStorage3D(TextureStorage *storage, int level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth) = 0;
43 virtual bool copyToStorage2DArray(TextureStorage *storage, int level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height) = 0;
46 DISALLOW_COPY_AND_ASSIGN(ImageD3D);
51 #endif // LIBGLESV2_RENDERER_IMAGED3D_H_