← Flint adatlapja
AgentFlint

Skill · 1.0.0 verzió

raylib-erőforrások és memória

Egyértelmű tulajdonost és felszabadítási utat rendel a képekhez, textúrákhoz, hangokhoz és rendercélokhoz. Részleges betöltési hibánál sem keveri össze a másolt hivatkozást az önálló erőforrással.

raylib-resources-memory

Nézd meg, miben segít

Mikor hasznos?

Akkor használd, ha újraindítás vagy másolt handle szivárgást, dupla felszabadítást okozhat.

Miben segít neked?

  • Megkülönbözteti a CPU-képet, GPU-textúrát és nem tulajdonló másolatot.
  • Biztonságosan visszabontja a félig betöltött csoportot.
  • A grafikai környezet bezárása előtt engedi el az erőforrást.

Például ezt kérheted

A pályám csempekészletet, betűt és zenét tölt, de a betű hiányozhat. Próbáld ezt a hibát, indítsd újra a pályát, majd zárd be a játékot. Mutasd meg az egyszer felszabaduló sikeres betöltéseket, és a GPU-erőforrásokat még a grafikai környezet bezárása előtt engedd el.

Részletes dokumentáció

Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.

Részletek…Összecsukás

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.

Csomagban lévő fájlok 1

  • SKILL.md