Skip to main content

Module linux

Module linux 

Source
Expand description

GL framebuffer import via Vulkan external memory (Linux/Android).

Imports a GL framebuffer into a wgpu::Texture by:

  1. Creating a Vulkan image with external memory (opaque FD)
  2. Importing the FD into GL via GL_EXT_memory_object_fd
  3. Blitting from the source FBO to the shared GL texture
  4. Wrapping the Vulkan image as a wgpu::Texture

Functionsยง

import_gl_framebuffer_vulkan
Import a GL framebuffer into a wgpu::Texture via Vulkan external memory.