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"
28 class ImageD3D : public Image
32 virtual ~ImageD3D() {};
34 static ImageD3D *makeImageD3D(Image *img);
36 virtual bool isDirty() const = 0;
38 virtual gl::Error setManagedSurface2D(TextureStorage *storage, int level) { return gl::Error(GL_NO_ERROR); };
39 virtual gl::Error setManagedSurfaceCube(TextureStorage *storage, int face, int level) { return gl::Error(GL_NO_ERROR); };
40 virtual gl::Error setManagedSurface3D(TextureStorage *storage, int level) { return gl::Error(GL_NO_ERROR); };
41 virtual gl::Error setManagedSurface2DArray(TextureStorage *storage, int layer, int level) { return gl::Error(GL_NO_ERROR); };
42 virtual gl::Error copyToStorage(TextureStorage *storage, const gl::ImageIndex &index, const gl::Box ®ion) = 0;
45 DISALLOW_COPY_AND_ASSIGN(ImageD3D);
50 #endif // LIBGLESV2_RENDERER_IMAGED3D_H_