Monado OpenXR Runtime
Loading...
Searching...
No Matches
vk_print.h File Reference

Printing helper code. More...

Include dependency graph for vk_print.h:

Go to the source code of this file.

Functions

void vk_print_result (struct vk_bundle *vk, const char *file, int line, const char *calling_func, VkResult ret, const char *called_func)
 Print the result of a function, info level if ret == VK_SUCCESS and error level otherwise.
 
void vk_print_device_info (struct vk_bundle *vk, enum u_logging_level log_level, const VkPhysicalDeviceProperties *pdp, uint32_t gpu_index, const char *title)
 Print device information to the logger at the given logging level, if the vk_bundle has that level enabled.
 
void vk_print_opened_device_info (struct vk_bundle *vk, enum u_logging_level log_level)
 Print device information about the device that bundle manages at the given logging level if the vk_bundle has that level enabled.
 
void vk_print_features_info (struct vk_bundle *vk, enum u_logging_level log_level)
 Print device features to the logger at the given logging level, if the vk_bundle has that level enabled.
 
void vk_print_external_handles_info (struct vk_bundle *vk, enum u_logging_level log_level)
 Print external handle features to the logger at the given logging level, if the vk_bundle has that level enabled.
 
void vk_print_swapchain_create_info (struct vk_bundle *vk, VkSwapchainCreateInfoKHR *i, enum u_logging_level log_level)
 Print a VkSwapchainCreateInfoKHR, used to log during creation.
 
void vk_print_queues_info (const struct vk_bundle *vk, enum u_logging_level log_level)
 Print queue info to the logger at the given logging level, if the vk_bundle has that level enabled.
 
XRT_CHECK_RESULT const char * vk_result_string (VkResult code)
 
XRT_CHECK_RESULT const char * vk_object_type_string (VkObjectType type)
 
XRT_CHECK_RESULT const char * vk_physical_device_type_string (VkPhysicalDeviceType device_type)
 
XRT_CHECK_RESULT const char * vk_format_string (VkFormat code)
 
XRT_CHECK_RESULT const char * vk_sharing_mode_string (VkSharingMode code)
 
XRT_CHECK_RESULT const char * vk_present_mode_string (VkPresentModeKHR code)
 
XRT_CHECK_RESULT const char * vk_color_space_string (VkColorSpaceKHR code)
 
XRT_CHECK_RESULT const char * vk_power_state_string (VkDisplayPowerStateEXT code)
 

Detailed Description

Function Documentation

◆ vk_print_external_handles_info()

void vk_print_external_handles_info ( struct vk_bundle vk,
enum u_logging_level  log_level 
)

Print external handle features to the logger at the given logging level, if the vk_bundle has that level enabled.

References U_LOG_IFL.

◆ vk_print_features_info()

void vk_print_features_info ( struct vk_bundle vk,
enum u_logging_level  log_level 
)

Print device features to the logger at the given logging level, if the vk_bundle has that level enabled.

References vk_bundle::timeline_semaphore, vk_bundle::timestamp_compute_and_graphics, vk_bundle::timestamp_period, vk_bundle::timestamp_valid_bits, and U_LOG_IFL.

◆ vk_print_queues_info()

void vk_print_queues_info ( const struct vk_bundle vk,
enum u_logging_level  log_level 
)

Print queue info to the logger at the given logging level, if the vk_bundle has that level enabled.

References u_pp_sink_stack_only::buffer, vk_bundle::graphics_queue, vk_bundle::main_queue, and U_LOG_IFL.

◆ vk_print_swapchain_create_info()

void vk_print_swapchain_create_info ( struct vk_bundle vk,
VkSwapchainCreateInfoKHR *  i,
enum u_logging_level  log_level 
)

Print a VkSwapchainCreateInfoKHR, used to log during creation.

References u_pp_sink_stack_only::buffer, U_LOG_IFL, vk_composite_alpha_flag_string(), vk_image_usage_flag_string(), and vk_surface_transform_flag_string().