Monado OpenXR Runtime
|
Common Vulkan code header. More...
Go to the source code of this file.
Data Structures | |
struct | vk_bundle |
A bundle of Vulkan functions and objects, used by both Compositor and Compositor client code. More... | |
Macros | |
#define | VK_DEBUG(vk, ...) |
#define | VK_ERROR(vk, ...) |
Functions | |
const char * | vk_result_string (VkResult code) |
const char * | vk_color_format_string (VkFormat code) |
const char * | vk_present_mode_string (VkPresentModeKHR code) |
const char * | vk_power_state_string (VkDisplayPowerStateEXT code) |
const char * | vk_color_space_string (VkColorSpaceKHR code) |
void | vk_init_validation_callback (struct vk_bundle *vk) |
void | vk_destroy_validation_callback (struct vk_bundle *vk) |
VkResult | vk_get_loader_functions (struct vk_bundle *vk, PFN_vkGetInstanceProcAddr g) |
VkResult | vk_get_instance_functions (struct vk_bundle *vk) |
VkResult | vk_init_cmd_pool (struct vk_bundle *vk) |
VkResult | vk_create_device (struct vk_bundle *vk, int forced_index) |
VkResult | vk_init_from_given (struct vk_bundle *vk, PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr, VkInstance instance, VkPhysicalDevice physical_device, VkDevice device, uint32_t queue_family_index, uint32_t queue_index) |
Initialize a bundle with objects given to us by client code, used by client_vk_compositor in Compositor client code. More... | |
bool | vk_get_memory_type (struct vk_bundle *vk, uint32_t type_bits, VkMemoryPropertyFlags memory_props, uint32_t *out_type_id) |
VkResult | vk_alloc_and_bind_image_memory (struct vk_bundle *vk, VkImage image, size_t max_size, const void *pNext_for_allocate, VkDeviceMemory *out_mem, VkDeviceSize *out_size) |
Allocate memory for an image and bind it to that image. More... | |
VkResult | vk_create_image_from_fd (struct vk_bundle *vk, enum xrt_swapchain_usage_bits swapchain_usage, int64_t format, uint32_t width, uint32_t height, uint32_t array_size, uint32_t mip_count, struct xrt_image_fd *image_fd, VkImage *out_image, VkDeviceMemory *out_mem) |
VkResult | vk_create_image_simple (struct vk_bundle *vk, uint32_t width, uint32_t height, VkFormat format, VkDeviceMemory *out_mem, VkImage *out_image) |
VkResult | vk_create_sampler (struct vk_bundle *vk, VkSampler *out_sampler) |
VkResult | vk_create_view (struct vk_bundle *vk, VkImage image, VkFormat format, VkImageSubresourceRange subresource_range, VkImageView *out_view) |
VkResult | vk_init_cmd_buffer (struct vk_bundle *vk, VkCommandBuffer *out_cmd_buffer) |
VkResult | vk_set_image_layout (struct vk_bundle *vk, VkCommandBuffer cmd_buffer, VkImage image, VkAccessFlags src_access_mask, VkAccessFlags dst_access_mask, VkImageLayout old_layout, VkImageLayout new_layout, VkImageSubresourceRange subresource_range) |
VkResult | vk_submit_cmd_buffer (struct vk_bundle *vk, VkCommandBuffer cmd_buffer) |
Common Vulkan code header.
#define VK_DEBUG | ( | vk, | |
... | |||
) |
Referenced by vk_get_memory_type().
#define VK_ERROR | ( | vk, | |
... | |||
) |
Referenced by vk_alloc_and_bind_image_memory(), vk_create_image_from_fd(), vk_create_image_simple(), vk_create_sampler(), vk_create_view(), vk_init_cmd_buffer(), vk_init_cmd_pool(), and vk_submit_cmd_buffer().
const char* vk_color_format_string | ( | VkFormat | code | ) |
References ENUM_TO_STR.
const char* vk_color_space_string | ( | VkColorSpaceKHR | code | ) |
References ENUM_TO_STR.
const char* vk_power_state_string | ( | VkDisplayPowerStateEXT | code | ) |
References ENUM_TO_STR.
const char* vk_present_mode_string | ( | VkPresentModeKHR | code | ) |
References ENUM_TO_STR.
const char* vk_result_string | ( | VkResult | code | ) |
References ENUM_TO_STR.
Referenced by comp_window_direct_acquire_xlib_display(), comp_window_direct_create_surface(), comp_window_direct_get_primary_display_mode(), vk_alloc_and_bind_image_memory(), vk_create_image_from_fd(), vk_create_image_simple(), vk_create_sampler(), vk_create_view(), vk_init_cmd_buffer(), vk_init_cmd_pool(), and vk_submit_cmd_buffer().