Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Unified Diff: gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h

Issue 8772033: Adds support for the GL_ANGLE_texture_usage and GL_EXT_texture_storage (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
===================================================================
--- gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h (revision 112643)
+++ gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h (working copy)
@@ -382,6 +382,17 @@
GL_RGBA,
};
+static GLenum valid_texture_internal_format_storage_table[] = {
+ GL_RGB565,
+ GL_RGBA4,
+ GL_RGB5_A1,
+ GL_ALPHA8_EXT,
+ GL_LUMINANCE8_EXT,
+ GL_LUMINANCE8_ALPHA8_EXT,
+ GL_RGB8_OES,
+ GL_RGBA8_OES,
+};
+
static GLenum valid_texture_mag_filter_mode_table[] = {
GL_NEAREST,
GL_LINEAR,
@@ -413,6 +424,11 @@
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z,
};
+static GLenum valid_texture_usage_table[] = {
+ GL_NONE,
+ GL_FRAMEBUFFER_ATTACHMENT_ANGLE,
+};
+
static GLenum valid_texture_wrap_mode_table[] = {
GL_CLAMP_TO_EDGE,
GL_MIRRORED_REPEAT,
@@ -550,6 +566,9 @@
texture_internal_format(
valid_texture_internal_format_table, arraysize(
valid_texture_internal_format_table)),
+ texture_internal_format_storage(
+ valid_texture_internal_format_storage_table, arraysize(
+ valid_texture_internal_format_storage_table)),
texture_mag_filter_mode(
valid_texture_mag_filter_mode_table, arraysize(
valid_texture_mag_filter_mode_table)),
@@ -561,6 +580,8 @@
valid_texture_parameter_table)),
texture_target(
valid_texture_target_table, arraysize(valid_texture_target_table)),
+ texture_usage(
+ valid_texture_usage_table, arraysize(valid_texture_usage_table)),
texture_wrap_mode(
valid_texture_wrap_mode_table, arraysize(
valid_texture_wrap_mode_table)),
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_validation_autogen.h ('k') | gpu/command_buffer/service/texture_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698