commit | 091b3b008d572935109a02d0a924f115f0aad10e | [log] [tgz] |
---|---|---|
author | Jiajie Hu <[email protected]> | Tue Jun 18 11:06:21 2019 |
committer | Commit Bot <[email protected]> | Tue Jun 18 11:06:21 2019 |
tree | 82ed7fbc5843b2dc401363bff9565fab5a620b42 | |
parent | bdbcd0d58eeef29426b7793a1eaae7da35c5629c [diff] [blame] |
Add (unsafe) dispatchComputeIndirect() to webgl2-compute context The method is quite similar to dispatchCompute(), except the number of work groups will be given by a pre-filled GPU buffer. Bug: 859249 Change-Id: I874759e1dca75613f1e638c104d186f3090c4b5d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1651492 Reviewed-by: Antoine Labour <[email protected]> Reviewed-by: Kenneth Russell <[email protected]> Commit-Queue: Jiajie Hu <[email protected]> Cr-Commit-Position: refs/heads/master@{#670040}
diff --git a/gpu/GLES2/gl2chromium_autogen.h b/gpu/GLES2/gl2chromium_autogen.h index 052b441e..ceb3f8c 100644 --- a/gpu/GLES2/gl2chromium_autogen.h +++ b/gpu/GLES2/gl2chromium_autogen.h
@@ -277,6 +277,7 @@ #define glFramebufferParameteri GLES2_GET_FUN(FramebufferParameteri) #define glBindImageTexture GLES2_GET_FUN(BindImageTexture) #define glDispatchCompute GLES2_GET_FUN(DispatchCompute) +#define glDispatchComputeIndirect GLES2_GET_FUN(DispatchComputeIndirect) #define glGetProgramInterfaceiv GLES2_GET_FUN(GetProgramInterfaceiv) #define glGetProgramResourceIndex GLES2_GET_FUN(GetProgramResourceIndex) #define glGetProgramResourceName GLES2_GET_FUN(GetProgramResourceName)