From e3ef115804b46e8bfc594987b04b1059aed5e002 Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 1 Feb 2026 18:56:47 +0100 Subject: 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. --- src/gpu/texture_manager.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gpu/texture_manager.h') 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); -- cgit v1.2.3