diff options
author | Niklas Haas <git@haasn.xyz> | 2017-09-28 00:07:42 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2017-09-28 01:54:38 +0200 |
commit | 67fd5882b86bc544e27a9cb0b188d63bdb950623 (patch) | |
tree | 7b0cd41803e8432cf2a5124c85cdf96cf73382a9 /audio/audio_buffer.h | |
parent | 002a0ce23200c7044ce744555223e4b884350436 (diff) | |
download | mpv-67fd5882b86bc544e27a9cb0b188d63bdb950623.tar.bz2 mpv-67fd5882b86bc544e27a9cb0b188d63bdb950623.tar.xz |
vo_gpu: make the vertex attribs dynamic
This has several advantages:
1. no more redundant texcoords when we don't need them
2. no more arbitrary limit on how many textures we can bind
3. (that extends to user shaders as well)
4. no more arbitrary limits on tscale radius
To realize this, the VAO was moved from a hacky stateful approach
(gl_sc_set_vertex_attribs) - which always bothered me since it was
required for compute shaders as well even though they ignored it - to be
a proper parameter of gl_sc_dispatch_draw, and internally plumbed into
gl_sc_generate, which will make a (properly mangled) deep copy into
params.vertex_attribs.
Diffstat (limited to 'audio/audio_buffer.h')
0 files changed, 0 insertions, 0 deletions