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/gpu/texture_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/gpu/texture_manager.h')
| -rw-r--r-- | src/gpu/texture_manager.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/texture_manager.h b/src/gpu/texture_manager.h index 54dcfeb..b97e6a8 100644 --- a/src/gpu/texture_manager.h +++ b/src/gpu/texture_manager.h @@ -37,9 +37,10 @@ class TextureManager { // Registers and generates a texture immediately void create_procedural_texture(const std::string& name, const ProceduralTextureDef& def); - + // Creates a texture from existing data (RGBA8) - void create_texture(const std::string& name, int width, int height, const uint8_t* data); + void create_texture(const std::string& name, int width, int height, + const uint8_t* data); // Retrieves a texture view by name (returns nullptr if not found) WGPUTextureView get_texture_view(const std::string& name); |
