mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
don't need memory barriers for readonly storage textures.
This commit is contained in:
@@ -506,6 +506,9 @@ static bool computeDispatchBarriers(Shader *shader, GLbitfield &preDispatchBarri
|
||||
if (binding.texture == nullptr)
|
||||
return false;
|
||||
|
||||
if (binding.access == GL_READ_ONLY)
|
||||
continue;
|
||||
|
||||
preDispatchBarriers |= GL_SHADER_IMAGE_ACCESS_BARRIER_BIT;
|
||||
|
||||
postDispatchBarriers |= GL_SHADER_IMAGE_ACCESS_BARRIER_BIT
|
||||
|
||||
Reference in New Issue
Block a user