VertexBuffer instancing 55/291355/5
authorDavid Steele <david.steele@samsung.com>
Thu, 13 Apr 2023 19:02:27 +0000 (20:02 +0100)
committerDavid Steele <david.steele@samsung.com>
Tue, 18 Apr 2023 11:10:12 +0000 (12:10 +0100)
commit526085088ce0ee6ee14ceb57a5f9191c65d8a2e6
tree01e197f109d816e047f5b9333bd96301cf07423c
parent41da2a3a30b5f805876d50fae170e07592c33e86
VertexBuffer instancing

Added a SetDivisor() API to Vertex buffer.
This will enable instancing on that buffer - when this is
drawn, it will use DrawArraysInstanced or DrawElementsInstanced,
with all the attributes in this vertex buffer having the same
input rate.

Currently, only an input rate of 1 is supported - this will be changed
in a future patch.

Requires an update to dali-adaptor too.

Change-Id: I5c7461cc3e2cb72c6257d3093afa95116a6dc6c1
15 files changed:
automated-tests/src/dali/dali-test-suite-utils/test-gl-abstraction.h
automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.cpp
automated-tests/src/dali/utc-Dali-VertexBuffer.cpp
dali/graphics-api/graphics-types.h
dali/internal/event/rendering/vertex-buffer-impl.cpp
dali/internal/event/rendering/vertex-buffer-impl.h
dali/internal/render/renderers/pipeline-cache.cpp
dali/internal/render/renderers/render-geometry.cpp
dali/internal/render/renderers/render-geometry.h
dali/internal/render/renderers/render-vertex-buffer.cpp
dali/internal/render/renderers/render-vertex-buffer.h
dali/internal/update/manager/update-manager.cpp
dali/internal/update/manager/update-manager.h
dali/public-api/rendering/vertex-buffer.cpp
dali/public-api/rendering/vertex-buffer.h