Blender V5.0
GPUPixelBufferNativeHandle Struct Reference

#include <GPU_texture.hh>

Public Attributes

int64_t handle = 0
size_t size = 0

Detailed Description

Return the native handle of the pix_buf to use for graphic interoperability registration.

  • OpenGL: pixel buffer object ID.
  • Vulkan on Windows: opaque handle for VkBuffer.
  • Vulkan on Unix: opaque file descriptor for VkBuffer.
  • Metal: MTLBuffer with unified memory.

For Vulkan, the caller is responsible for closing the handle.

Definition at line 1285 of file GPU_texture.hh.

Member Data Documentation

◆ handle

◆ size


The documentation for this struct was generated from the following file: