From d572203c41cfff817465fc3cddcdea56d5d7d9f8 Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 3 Mar 2026 09:00:50 +0100 Subject: 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. --- workspaces/main/assets.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'workspaces/main') 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" -- cgit v1.2.3