diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-01 18:56:47 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-01 18:56:47 +0100 |
| commit | e3ef115804b46e8bfc594987b04b1059aed5e002 (patch) | |
| tree | 3670f718ee23cf34e94984568900eac23022d1f0 /src/util/asset_manager.h | |
| parent | 7fab8880cca269621cd32610b22f2820567771f2 (diff) | |
feat(gpu/assets): Fix tests, integrate bumpy 3D renderer and procedural assets
- Fixed test_sequence by restoring MainSequence::init_test for mocking.
- Corrected CMakeLists.txt dependencies and source groupings to prevent duplicate symbols.
- standardizing Effect constructor signature for seq_compiler compatibility.
- Implemented Hybrid3DEffect using bumpy Renderer3D and procedural NOISE_TEX.
- Updated MainSequence to support depth buffer for 3D elements.
- Formatted all source files with clang-format.
Diffstat (limited to 'src/util/asset_manager.h')
| -rw-r--r-- | src/util/asset_manager.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/util/asset_manager.h b/src/util/asset_manager.h index 00aafc0..b9cd778 100644 --- a/src/util/asset_manager.h +++ b/src/util/asset_manager.h @@ -8,16 +8,20 @@ enum class AssetId : uint16_t; // Forward declaration -// Type for procedural generation functions: (buffer, width, height, params, num_params) +// Type for procedural generation functions: (buffer, width, height, params, +// num_params) typedef void (*ProcGenFunc)(uint8_t*, int, int, const float*, int); struct AssetRecord { - const uint8_t* data; // Pointer to asset data (static or dynamic) - size_t size; // Size of the asset data - bool is_procedural; // True if data was dynamically allocated by a procedural generator - const char* proc_func_name_str; // Name of procedural generation function (string literal) - const float* proc_params; // Parameters for procedural generation (static, from assets.txt) - int num_proc_params; // Number of procedural parameters + const uint8_t* data; // Pointer to asset data (static or dynamic) + size_t size; // Size of the asset data + bool is_procedural; // True if data was dynamically allocated by a procedural + // generator + const char* proc_func_name_str; // Name of procedural generation function + // (string literal) + const float* proc_params; // Parameters for procedural generation (static, + // from assets.txt) + int num_proc_params; // Number of procedural parameters }; // Generic interface |
