GPU: State: Add GPU_BARRIER_UNIFORM

This allows to synchronise uniform buffer writes from compute shader
when an UBO is bound as SSBO.
This commit is contained in:
2022-11-15 14:25:04 +01:00
parent f0ce95b7b9
commit 5db84d0ef1
3 changed files with 6 additions and 2 deletions

View File

@@ -130,6 +130,9 @@ static inline GLbitfield to_gl(eGPUBarrier barrier_bits)
if (barrier_bits & GPU_BARRIER_ELEMENT_ARRAY) {
barrier |= GL_ELEMENT_ARRAY_BARRIER_BIT;
}
if (barrier_bits & GPU_BARRIER_UNIFORM) {
barrier |= GL_UNIFORM_BARRIER_BIT;
}
return barrier;
}