Skip to content

Conversation

@gindemit
Copy link
Owner

Summary

  • implement cross-platform GPU texture creation and render-thread upload flow in the native plugin
  • update the Unity runtime to wrap external textures, schedule plugin uploads, and restrict atlas support to WebGL
  • adjust CMake settings for Objective-C++ builds and link required graphics libraries on each platform

Testing

  • not run (not available in container)

https://chatgpt.com/codex/tasks/task_e_68cb008ccf20832fb4408966d153fcfc

…of github.com:gindemit/unity-rlottie into codex/remove-texture.apply-and-move-updates-to-native
…exture.apply-and-move-updates-to-native

# Conflicts:
#	unity/RLottieUnity/Assets/LottiePlugin/Plugins/Windows/x86/LottiePlugin.dll
#	unity/RLottieUnity/Assets/LottiePlugin/Plugins/Windows/x86_64/LottiePlugin.dll
#	unity/RLottieUnity/Packages/manifest.json
#	unity/RLottieUnity/Packages/packages-lock.json
#	unity/RLottieUnity/ProjectSettings/ProjectVersion.txt
[Updated formatting and structure of CMake configuration for LottiePlugin.]
[Reorganized GPU header includes for clarity and conditional compilation.]
…ecks to use global scope.

[Removed the UnityGfxDeviceEventType enum and updated references in UnitySetGraphicsDevice function.]
[Updated artifact paths for Linux plugin to use directory instead of specific file.]
[Updated the artifact download path for Linux to include x86_64 directory.]
gindemit and others added 30 commits December 1, 2025 21:37
…conversion flag

[Added a parameter to rendering functions to control BGRA to RGBA conversion for WebGL.]
[Added a new shader to convert BGRA textures to RGBA format for improved rendering compatibility.]
[Added support for BGRA to RGBA texture conversion using shader or native methods on WebGL. Introduced LottieWebGLSettings for configuration.]
[Add Shaders.meta file for managing shader assets in LottiePlugin]
* Extract logger from LottiePlugin

* [skip ci] New native libraries version: 0.5.0-dev.198
…ions

- Implement OpenGL backend with functions for texture operations, extension detection, and error checking.
- Introduce Vulkan backend with stubs for texture management, leveraging Unity's handling of GPU uploads.
- Create utility functions for converting pixel formats between BGRA and RGBA for different platforms.
- Establish a common renderer interface to manage graphics device types and their respective operations.
- Implement upload pipeline and queue management for handling texture uploads efficiently.
- Add logging for better debugging and tracking of rendering events and state changes.
- Ensure compatibility with Unity's graphics device events and lifecycle management.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants