44XRT_CHECK_RESULT
const char *
59VkExternalMemoryHandleTypeFlags
85#define VK_CSCI_FORMATS(THING_COLOR, THING_DS, THING_D, THING_S) \
87 THING_COLOR(R16G16B16A16_UNORM) \
88 THING_COLOR(R16G16B16A16_SFLOAT) \
89 THING_COLOR(R16G16B16_UNORM) \
90 THING_COLOR(R16G16B16_SFLOAT) \
91 THING_COLOR(R8G8B8A8_SRGB) \
92 THING_COLOR(B8G8R8A8_SRGB) \
93 THING_COLOR(R8G8B8_SRGB) \
94 THING_COLOR(R8G8B8A8_UNORM) \
95 THING_COLOR(B8G8R8A8_UNORM) \
96 THING_COLOR(R8G8B8_UNORM) \
97 THING_COLOR(B8G8R8_UNORM) \
98 THING_COLOR(R5G6B5_UNORM_PACK16) \
99 THING_COLOR(R32_SFLOAT) \
101 THING_D(D32_SFLOAT) \
103 THING_D(X8_D24_UNORM_PACK32) \
105 THING_DS(D24_UNORM_S8_UINT) \
106 THING_DS(D32_SFLOAT_S8_UINT) \
173VkExternalMemoryHandleTypeFlags
183 VkFormat image_format,
185 VkExternalMemoryHandleTypeFlags handle_type,
186 bool *out_importable,
187 bool *out_exportable);
xrt_swapchain_usage_bits
Usage of the swapchain images.
Definition xrt_compositor.h:541
xrt_swapchain_create_flags
Special flags for creating swapchain images.
Definition xrt_compositor.h:523
A bundle of Vulkan functions and objects, used by both Compositor and Compositor client code.
Definition vk_helpers.h:81
A single image of a swapchain based on native buffer handles.
Definition xrt_compositor.h:2194
VkImageAspectFlags vk_csci_get_barrier_aspect_mask(VkFormat format)
Return the barrier aspect mask for this format, this is intended for the barriers that flush the data...
Definition vk_compositor_flags.c:132
VkExternalMemoryHandleTypeFlags vk_cb_get_buffer_external_handle_type(struct vk_bundle *vk)
Return the extern handle type that a buffer should be created with.
Definition vk_compositor_flags.c:66
XRT_CHECK_RESULT const char * xrt_swapchain_usage_flag_string(enum xrt_swapchain_usage_bits bits, bool null_on_unknown)
Returns xrt swapchain_usage flag if one valid bit is set, if multiple bits are set,...
Definition vk_print.c:1028
VkExternalMemoryHandleTypeFlags vk_csci_get_image_external_handle_type(struct vk_bundle *vk, struct xrt_image_native *xin)
Return the extern handle type that a image should be created with.
Definition vk_compositor_flags.c:215
VkAccessFlags vk_csci_get_barrier_access_mask(enum xrt_swapchain_usage_bits bits)
Returns the access flags for the compositor to app barriers.
Definition vk_compositor_flags.c:80
void vk_csci_get_image_external_support(struct vk_bundle *vk, VkFormat image_format, enum xrt_swapchain_usage_bits bits, VkExternalMemoryHandleTypeFlags handle_type, bool *out_importable, bool *out_exportable)
Get whether a given image can be imported/exported for a handle type.
Definition vk_compositor_flags.c:230
VkImageLayout vk_csci_get_barrier_optimal_layout(VkFormat format)
Return the optimal layout for this format, this is the layout as given to the app so is bound to the ...
Definition vk_compositor_flags.c:113
VkImageUsageFlags vk_csci_get_image_usage_flags(struct vk_bundle *vk, VkFormat format, enum xrt_swapchain_usage_bits bits)
Returns the usage bits for a given selected format and usage.
Definition vk_compositor_flags.c:178
bool vk_csci_is_format_supported(struct vk_bundle *vk, VkFormat format, enum xrt_swapchain_create_flags create, enum xrt_swapchain_usage_bits xbits)
Verify if a format is supported for a specific usage.
Definition vk_compositor_flags.c:345
VkImageAspectFlags vk_csci_get_image_view_aspect(VkFormat format, enum xrt_swapchain_usage_bits bits)
For images views created by the compositor to sample the images, what aspect should be set.
Definition vk_compositor_flags.c:155
Common Vulkan code header.
Header holding common defines.
Include all of the Vulkan headers in one place, and cope with any "messy" includes implied by it.