diff options
| author | skal <pascal.massimino@gmail.com> | 2026-03-03 09:00:50 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-03-03 09:00:50 +0100 |
| commit | d572203c41cfff817465fc3cddcdea56d5d7d9f8 (patch) | |
| tree | 12d55401510fb658416dcd3aead47a14f046061a /workspaces/main | |
| parent | c229f3c6b5756d5cbbdad6049b4250ebea7aae7a (diff) | |
feat(assets): replace is_procedural/is_gpu_procedural bools with AssetType enum, add MP3 type
- Add AssetType enum {STATIC, PROC, PROC_GPU, MP3} to AssetRecord
- Add GetAssetType() API to asset_manager.h/cc
- asset_packer: parse 'MP3' compression keyword in assets.txt
- tracker: remove magic-byte is_mp3_asset(); use GetAssetType() instead
- assets.txt: NEVER_MP3 now uses 'MP3' compression type
- doc/ASSET_SYSTEM.md: rewritten to document new types and API
handoff(Gemini): AssetType enum landed; MP3 detection is now explicit via asset metadata.
Diffstat (limited to 'workspaces/main')
| -rw-r--r-- | workspaces/main/assets.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/workspaces/main/assets.txt b/workspaces/main/assets.txt index 2cc3896..a324cfd 100644 --- a/workspaces/main/assets.txt +++ b/workspaces/main/assets.txt @@ -1,5 +1,11 @@ # WORKSPACE: main # Asset Name, Compression Type, Filename/Placeholder, Description +# +# Compression types: +# NONE - Raw binary embed (shaders, meshes, .spec files) +# MP3 - MP3 audio; decoded to spectrogram at runtime +# PROC(func, ...) - CPU procedural generation at init +# PROC_GPU(func,..) - GPU compute procedural generation at init # --- Drum & Percussion Samples --- KICK_1, NONE, music/KICK_606.spec, "606 Kick" @@ -18,7 +24,7 @@ SPLASH_1, NONE, music/SPLASH_GROUNDED.spec, "Splash Cymbal" BASS_1, NONE, music/BASS_GUITAR_FEEL.spec, "Bass Guitar" BASS_2, NONE, music/BASS_SYNTH_1.spec, "Synth Bass 1" BASS_3, NONE, music/SYNTH_BASS_DISTORT.spec, "Distorted Synth Bass" -NEVER_MP3, NONE, music/never.mp3, "MP3 Sample" +NEVER_MP3, MP3, music/never.mp3, "MP3 Sample" # --- Procedural Textures --- NOISE_TEX, PROC(gen_noise, 1234, 16), _, "Procedural noise texture for bump mapping" |
