Blender Git Commit Log

Git Commits -> Revision 214a56c

Revision 214a56c by Kévin Dietrich (master)
December 17, 2021, 23:55 (GMT)
GPU: add memory barriers for vertex and index buffers

This adds memory barriers to use with `GPU_memory_barrier` to ensure that
writes to a vertex or index buffer issued before the barrier are
completed after it, so they can be safely read later by another shader.

`GPU_BARRIER_VERTEX_ATTRIB_ARRAY` should be used for vertex buffers (`GPUVertBuf`),
and `GPU_BARRIER_ELEMENT_ARRAY` should be used for index buffers (`GPUIndexBuf`).

Reviewed By: fclem

Differential Revision: https://developer.blender.org/D13595

Commit Details:

Full Hash: 214a56ce8c67bb7a3af45aaafca8aa4a5ec85129
Parent Commit: 8e31e53
Lines Changed: +9, -1

2 Modified Paths:

/source/blender/gpu/GPU_state.h (+3, -1) (Diff)
/source/blender/gpu/opengl/gl_state.hh (+6, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021