render: resolve GPU textures once per draw and sort by handle

RenderSceneGPU resolves each draw's texture while classifying it and
sorts opaque draws by the texture handle instead of comparing paths;
invalid draws are dropped before sorting. Bumps sdk (skin cache).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-12 16:30:32 +09:00
co-authored by Claude Opus 5.5
parent f03f63e700
commit 545cbb1e5d
4 changed files with 28 additions and 10 deletions
+1
View File
@@ -148,6 +148,7 @@ private:
int priority = 1;
float depth = 0.0f;
const Render3DDraw* draw = nullptr;
SDL_GPUTexture* texture = nullptr; // resolved once per draw; also the opaque sort key
};
float m_eye[3] = {0.0f, 0.0f, 0.0f};