raylib-Ressourcen und Speicher
Gibt Texturen, Bildern, Klängen und Render-Zielen genau einen Besitzer und Freigabeweg. Behandelt teilweise fehlgeschlagenes Laden, ohne kopierte Handles mit eigenständig besessenen Ressourcen zu verwechseln.
raylib-resources-memory
Entdecke, wie der Skill hilftWann ist der Skill hilfreich?
Nutze diesen Skill bei Lecks, doppeltem Entladen oder veralteten Handles.
Wobei hilft er dir?
- Unterscheidet CPU-Bilder, GPU-Texturen und nicht besitzende Kopien.
- Baut teilweise geladene Assetgruppen sicher zurück.
- Gibt Grafikressourcen vor Schließen des Kontexts frei.
Das könntest du fragen
Unser Level lädt Tileset, Schrift und Musik; die Schrift kann fehlen. Prüfe diesen Fehler, starte das Level neu und beende das Spiel. Zeige die einmalige Freigabe erfolgreicher Ladevorgänge und gib GPU-Ressourcen vor dem Schließen des Grafikkontexts frei.
Ausführliche Dokumentation
Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.
Weniger anzeigen
raylib — resources memory
Use when loading raylib textures, images, models, fonts, audio or render targets.
Version and project gate
Inspect The local raylib.h version, linked library, C/C++ build system, platform backend, asset paths, compile flags and ownership conventions. Match the cheatsheet to the linked version rather than assuming the current website API. Never turn a task into an engine upgrade without the user’s intent. Read the version-matching official reference when an API decision depends on it.
Work
Pair each successful acquisition with one owner and release operation. Distinguish CPU Image data from GPU Texture data and shallow struct copies from new resources. Initialize failure states and unwind partially loaded groups. Release GPU resources before closing their context.
Deliver
A resource ownership table and safe acquisition/cleanup paths in the project’s language conventions. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
A copied handle is not independent ownership; double unload and use-after-unload can survive a first demo run.
Acceptance scenario
Force one asset load failure halfway through initialization, restart a scene and close without leaking or releasing a handle twice. Follow the project’s execution and verification permissions. If execution or a target device is unavailable, provide the reproduction steps and name the remaining uncertainty; do not mark it passed.
Scope and sources
This skill belongs to Flint. Agent selection is restricted by Orqestria’s assigned-agent policy, including forced skill selection; instruction text alone is not an access control. These are original task workflows researched from official documentation, not a copied or endorsed vendor skill.
Enthaltene Dateien 1
SKILL.md
