setVulkanBorrowedTextureTarget method
- VulkanBorrowedTextureReplacement replacement
Replaces the Vulkan images that a borrowed ring renders into.
Use it to resize the ring, or to give the session images again after
RenderSessionHandle.releaseTarget(). Release every acquired frame first.
Once the replacement completes, the session no longer uses the old images.
See mln_render_session_set_vulkan_borrowed_texture_target in the
C API reference.
Implementation
Future<void> setVulkanBorrowedTextureTarget(
VulkanBorrowedTextureReplacement replacement,
) => _run(
(arena, completion) =>
raw.mln_render_session_set_vulkan_borrowed_texture_target(
_handle.raw,
_writeVulkanBorrowedTextureReplacement(replacement, arena),
completion,
nativeDiagnostic,
),
);