Share GPU skinning palette per instance; push it once per change

Render3DDraw/HardwareBatch hold the SDK's shared palette instead of
copying 16 floats per bone per draw, and HardwareScene re-pushes the
uniform only when the palette pointer changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-12 16:12:14 +09:00
co-authored by Claude Opus 5.5
parent 1eccdc87d7
commit 837ccc2f31
7 changed files with 19 additions and 13 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ struct HardwareBatch {
float alphaRef;
HardwareTransform transform{};
std::shared_ptr<const Render3DDraw> geometry;
std::vector<float> palette;
std::shared_ptr<const std::vector<float>> palette;
};
class HardwareScene {