godot/drivers/gles3/storage/texture_storage.h

/**************************************************************************/
/*  texture_storage.h                                                     */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#ifndef TEXTURE_STORAGE_GLES3_H
#define TEXTURE_STORAGE_GLES3_H

#ifdef GLES3_ENABLED

#include "platform_gl.h"

#include "config.h"
#include "core/io/image.h"
#include "core/os/os.h"
#include "core/templates/rid_owner.h"
#include "servers/rendering/renderer_compositor.h"
#include "servers/rendering/storage/texture_storage.h"

#include "drivers/gles3/shaders/canvas_sdf.glsl.gen.h"

namespace GLES3 {

#define _GL_TEXTURE_MAX_ANISOTROPY_EXT
#define _GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT

#define _EXT_COMPRESSED_RGBA_S3TC_DXT1_EXT
#define _EXT_COMPRESSED_RGBA_S3TC_DXT3_EXT
#define _EXT_COMPRESSED_RGBA_S3TC_DXT5_EXT

#define _EXT_COMPRESSED_RED_RGTC1_EXT
#define _EXT_COMPRESSED_RED_RGTC1
#define _EXT_COMPRESSED_SIGNED_RED_RGTC1
#define _EXT_COMPRESSED_RG_RGTC2
#define _EXT_COMPRESSED_SIGNED_RG_RGTC2
#define _EXT_COMPRESSED_SIGNED_RED_RGTC1_EXT
#define _EXT_COMPRESSED_RED_GREEN_RGTC2_EXT
#define _EXT_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT
#define _EXT_ETC1_RGB8_OES

#define _EXT_COMPRESSED_RGBA_BPTC_UNORM
#define _EXT_COMPRESSED_SRGB_ALPHA_BPTC_UNORM
#define _EXT_COMPRESSED_RGB_BPTC_SIGNED_FLOAT
#define _EXT_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT

#define _EXT_COMPRESSED_R11_EAC
#define _EXT_COMPRESSED_SIGNED_R11_EAC
#define _EXT_COMPRESSED_RG11_EAC
#define _EXT_COMPRESSED_SIGNED_RG11_EAC
#define _EXT_COMPRESSED_RGB8_ETC2
#define _EXT_COMPRESSED_SRGB8_ETC2
#define _EXT_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2
#define _EXT_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2
#define _EXT_COMPRESSED_RGBA8_ETC2_EAC
#define _EXT_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC

#define _EXT_COMPRESSED_RGBA_ASTC_4x4_KHR
#define _EXT_COMPRESSED_RGBA_ASTC_5x4_KHR
#define _EXT_COMPRESSED_RGBA_ASTC_5x5_KHR
#define _EXT_COMPRESSED_RGBA_ASTC_6x5_KHR
#define _EXT_COMPRESSED_RGBA_ASTC_6x6_KHR
#define _EXT_COMPRESSED_RGBA_ASTC_8x5_KHR
#define _EXT_COMPRESSED_RGBA_ASTC_8x6_KHR
#define _EXT_COMPRESSED_RGBA_ASTC_8x8_KHR
#define _EXT_COMPRESSED_RGBA_ASTC_10x5_KHR
#define _EXT_COMPRESSED_RGBA_ASTC_10x6_KHR
#define _EXT_COMPRESSED_RGBA_ASTC_10x8_KHR
#define _EXT_COMPRESSED_RGBA_ASTC_10x10_KHR
#define _EXT_COMPRESSED_RGBA_ASTC_12x10_KHR
#define _EXT_COMPRESSED_RGBA_ASTC_12x12_KHR

#define _EXT_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR
#define _EXT_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR
#define _EXT_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR
#define _EXT_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR
#define _EXT_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR
#define _EXT_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR
#define _EXT_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR
#define _EXT_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR
#define _EXT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR
#define _EXT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR
#define _EXT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR
#define _EXT_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR
#define _EXT_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR
#define _EXT_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR

#define _GL_TEXTURE_EXTERNAL_OES

#define _EXT_TEXTURE_CUBE_MAP_SEAMLESS

enum DefaultGLTexture {};

struct CanvasTexture {};

struct RenderTarget;

struct Texture {};

struct RenderTarget {};

class TextureStorage : public RendererTextureStorage {};

inline String TextureStorage::get_framebuffer_error(GLenum p_status) {}

} // namespace GLES3

#endif // GLES3_ENABLED

#endif // TEXTURE_STORAGE_GLES3_H