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

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

Issue 1136713003: Add ES3 commands GetVertexAttribI{u}iv to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months 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 091eddafd0a0377b1b9a329e28f372d0fd94ea5b..c02f1179fd1c77bb2dd0f9ab2a3a3f0794aefec0 100644
--- a/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
@@ -913,6 +913,11 @@ static const GLenum valid_vertex_attribute_table[] = {
GL_CURRENT_VERTEX_ATTRIB,
};
+static const GLenum valid_vertex_attribute_table_es3[] = {
+ GL_VERTEX_ATTRIB_ARRAY_INTEGER,
+ GL_VERTEX_ATTRIB_ARRAY_DIVISOR,
+};
+
static const GLenum valid_vertex_pointer_table[] = {
GL_VERTEX_ATTRIB_ARRAY_POINTER,
};
@@ -1081,6 +1086,8 @@ void Validators::UpdateValuesES3() {
texture_internal_format_storage.AddValues(
valid_texture_internal_format_storage_table_es3,
arraysize(valid_texture_internal_format_storage_table_es3));
+ vertex_attribute.AddValues(valid_vertex_attribute_table_es3,
+ arraysize(valid_vertex_attribute_table_es3));
}
#endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H_

Powered by Google App Engine
This is Rietveld 408576698