Monado OpenXR Runtime
xrt_image_native Struct Reference

A single image of a swapchain based on native buffer handles. More...

#include <xrt/xrt_compositor.h>

Collaboration diagram for xrt_image_native:

Data Fields

xrt_graphics_buffer_handle_t handle
 Native buffer handle. More...
 
size_t size
 Buffer size in memory. More...
 
bool use_dedicated_allocation
 Is the image created with a dedicated allocation or not. More...
 
bool is_dxgi_handle
 Is the native buffer handle a DXGI handle? More...
 

Detailed Description

A single image of a swapchain based on native buffer handles.

See also
xrt_swapchain_native, xrt_graphics_buffer_handle_t

Field Documentation

◆ handle

xrt_graphics_buffer_handle_t xrt_image_native::handle

◆ is_dxgi_handle

bool xrt_image_native::is_dxgi_handle

Is the native buffer handle a DXGI handle?

Referenced by vk_csci_get_image_external_handle_type(), and vk_ic_from_natives().

◆ size

size_t xrt_image_native::size

Buffer size in memory.

Optional, set to 0 if unknown at allocation time. If not zero, used for a max memory requirements check when importing into Vulkan.

◆ use_dedicated_allocation

bool xrt_image_native::use_dedicated_allocation

Is the image created with a dedicated allocation or not.

Referenced by ogl_import_from_native().


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