diff options
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); |
