diff options
Diffstat (limited to 'src/3rdparty/angle/src/libGLESv2/renderer/d3d/TextureStorage.h')
-rw-r--r-- | src/3rdparty/angle/src/libGLESv2/renderer/d3d/TextureStorage.h | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/src/3rdparty/angle/src/libGLESv2/renderer/d3d/TextureStorage.h b/src/3rdparty/angle/src/libGLESv2/renderer/d3d/TextureStorage.h deleted file mode 100644 index da92be3c74..0000000000 --- a/src/3rdparty/angle/src/libGLESv2/renderer/d3d/TextureStorage.h +++ /dev/null @@ -1,66 +0,0 @@ -// -// Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. -// - -// TextureStorage.h: Defines the abstract rx::TextureStorage class. - -#ifndef LIBGLESV2_RENDERER_TEXTURESTORAGE_H_ -#define LIBGLESV2_RENDERER_TEXTURESTORAGE_H_ - -#include "libGLESv2/Error.h" - -#include "common/debug.h" -#include "libGLESv2/Error.h" - -#include <GLES2/gl2.h> -#include <cstdint> - -namespace gl -{ -struct ImageIndex; -struct Box; -struct PixelUnpackState; -} - -namespace rx -{ -class SwapChain; -class RenderTarget; -class Image; - -class TextureStorage -{ - public: - TextureStorage(); - virtual ~TextureStorage() {}; - - virtual int getTopLevel() const = 0; - virtual bool isRenderTarget() const = 0; - virtual bool isManaged() const = 0; - virtual int getLevelCount() const = 0; - - virtual gl::Error getRenderTarget(const gl::ImageIndex &index, RenderTarget **outRT) = 0; - virtual gl::Error generateMipmap(const gl::ImageIndex &sourceIndex, const gl::ImageIndex &destIndex) = 0; - - virtual gl::Error copyToStorage(TextureStorage *destStorage) = 0; - virtual gl::Error setData(const gl::ImageIndex &index, Image *image, const gl::Box *destBox, GLenum type, - const gl::PixelUnpackState &unpack, const uint8_t *pixelData) = 0; - - unsigned int getRenderTargetSerial(const gl::ImageIndex &index) const; - unsigned int getTextureSerial() const; - - protected: - void initializeSerials(unsigned int rtSerialsToReserve, unsigned int rtSerialsLayerStride); - - private: - DISALLOW_COPY_AND_ASSIGN(TextureStorage); - - unsigned int mFirstRenderTargetSerial; - unsigned int mRenderTargetSerialsLayerStride; -}; - -} - -#endif // LIBGLESV2_RENDERER_TEXTURESTORAGE_H_ |