Skip to content

Conversation

@xiaowei-guan
Copy link

@xiaowei-guan xiaowei-guan commented Sep 24, 2025

Add new struct FlutterVulkanTexture for embedder :

typedef struct {
  /// Handle to the VkImage that is owned by the embedder. The engine will
  /// bind this image for writing the frame.
  FlutterVulkanImageHandle image;
  /// The VkDeviceMemory that backs the iamge.
  FlutterVulkanDeviceMemoryHandle image_memory;
  /// The VkFormat of the image (for example: VK_FORMAT_R8G8B8A8_UNORM).
  uint32_t format;
  /// User data to be returned on the invocation of the destruction callback.
  void* user_data;
  /// Callback invoked (on an engine managed thread) that asks the embedder to
  /// collect the texture.
  VoidCallback destruction_callback;
  /// Optional parameters for texture height/width, default is 0, non-zero means
  /// the texture has the specified width/height.
  /// Width of the texture.
  size_t width;
  /// Height of the texture.
  size_t height;
} FlutterVulkanTexture;

The implement of texture source refer to the solution of android platform(https://github.com/flutter-tizen/flutter/blob/flutter-3.35.3/engine/src/flutter/impeller/renderer/backend/vulkan/android/ahb_texture_source_vk.cc)

and I have submitted the code Support render texture for embedder, I will create a new PR after support vulkan backend PR released.

xiaowei-guan and others added 5 commits September 24, 2025 09:10
* Merge texture vulkan code and implement texture source

* [Tizen] Enable vulkan

* Disable xll and fix vulkan build error
@xiaowei-guan xiaowei-guan marked this pull request as draft September 24, 2025 01:11
@xiaowei-guan xiaowei-guan marked this pull request as ready for review September 25, 2025 01:54
@xiaowei-guan
Copy link
Author

@xiaowei-guan xiaowei-guan merged commit 912825c into flutter-tizen:flutter-3.35.3 Oct 11, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants