DrawManager: Fix Incorrect Resource Binding Hair/Curves #108139

Merged
Jeroen Bakker merged 1 commits from Jeroen-Bakker/blender:draw-manager-hair-curve-rendering-texel-buffer-b into main 2023-05-22 12:59:15 +02:00

1 Commits

Author SHA1 Message Date
Jeroen Bakker 36df920987 DrawManager: Fix Incorrect Resource Binding Hair/Curves
In the DrawManager a dummy texture was attached to the a, au, c, ac
binding points. In the shader those binding points are actual texture
buffers.

The reason for the dummy texture was to work around some OpenGL driver
bugs. In Vulkan (and expected also in Metal) it is not allowed to attach
a texture as a texel buffer and would require copying buffers into a
texel buffer during binding.

This patch will remove the binding of the textures and use the vbos in
stead. Also it fixes an issue where a platform does support compute
shaders, but don't support transform feedback. This is currently the
case for the Vulkan backend.
2023-05-22 11:20:40 +02:00