diff options
author | Niklas Haas <git@haasn.xyz> | 2017-07-17 18:11:32 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2017-07-24 17:19:31 +0200 |
commit | aad6ba018a17eded2b3f4af2212e0123cfb29b79 (patch) | |
tree | 4fd0376511b794c001ba0fd1675a940a764bb728 /video/out/opengl/gl_headers.h | |
parent | eb54d2ad4d46b6c1f91564604fad05f092772e84 (diff) | |
download | mpv-aad6ba018a17eded2b3f4af2212e0123cfb29b79.tar.bz2 mpv-aad6ba018a17eded2b3f4af2212e0123cfb29b79.tar.xz |
vo_opengl: support compute shaders
These can either be invoked as dispatch_compute to do a single
computation, or finish_pass_fbo (after setting compute_size_minimum) to
render to a new texture using a compute shader. To make this stuff all
work transparently, we try really, really hard to make compute shaders
as identical to fragment shaders as possible in their behavior.
Diffstat (limited to 'video/out/opengl/gl_headers.h')
-rw-r--r-- | video/out/opengl/gl_headers.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/opengl/gl_headers.h b/video/out/opengl/gl_headers.h index 74a4947137..8f201bb64c 100644 --- a/video/out/opengl/gl_headers.h +++ b/video/out/opengl/gl_headers.h @@ -48,7 +48,9 @@ // --- GL 1.5 +#define GL_READ_ONLY 0x88B8 #define GL_WRITE_ONLY 0x88B9 +#define GL_READ_WRITE 0x88BA // --- GL 3.0 @@ -77,6 +79,10 @@ #define GL_DYNAMIC_STORAGE_BIT 0x0100 #define GL_CLIENT_STORAGE_BIT 0x0200 +// -- GL 4.3 or GL_ARB_compute_shader + +#define GL_COMPUTE_SHADER 0x91B9 + // --- GL_NV_vdpau_interop #define GLvdpauSurfaceNV GLintptr |