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

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

Issue 788123002: Add sampler related ES3 APIs to command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
diff --git a/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h b/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
index d718391bf56fc82980e4989ccb72d65d1a64db99..f1846cf4231f5f824575b929e5252c307bb19ade 100644
--- a/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
@@ -353,6 +353,18 @@ static const GLenum valid_reset_status_table[] = {
GL_UNKNOWN_CONTEXT_RESET_ARB,
};
+static const GLenum valid_sampler_parameter_table[] = {
+ GL_TEXTURE_MAG_FILTER,
+ GL_TEXTURE_MIN_FILTER,
+ GL_TEXTURE_MIN_LOD,
+ GL_TEXTURE_MAX_LOD,
+ GL_TEXTURE_WRAP_S,
+ GL_TEXTURE_WRAP_T,
+ GL_TEXTURE_WRAP_R,
+ GL_TEXTURE_COMPARE_MODE,
+ GL_TEXTURE_COMPARE_FUNC,
+};
+
static const GLenum valid_shader_parameter_table[] = {
GL_SHADER_TYPE,
GL_DELETE_STATUS,
@@ -596,6 +608,8 @@ Validators::Validators()
arraysize(valid_render_buffer_target_table)),
reset_status(valid_reset_status_table,
arraysize(valid_reset_status_table)),
+ sampler_parameter(valid_sampler_parameter_table,
+ arraysize(valid_sampler_parameter_table)),
shader_binary_format(),
shader_parameter(valid_shader_parameter_table,
arraysize(valid_shader_parameter_table)),

Powered by Google App Engine
This is Rietveld 408576698