Blender V5.3
vk_to_string.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "vk_common.hh"
12
13namespace blender::gpu {
14
15const char *to_string(VkResult result);
16
17std::string to_string(VkBuffer vk_handle);
18/* Define all handles only if type differs */
19#if VK_USE_64_BIT_PTR_DEFINES == 1
20std::string to_string(VkImage vk_handle);
21std::string to_string(VkImageView vk_handle);
22std::string to_string(VkDescriptorSet vk_handle);
23std::string to_string(VkPipeline vk_handle);
24std::string to_string(VkPipelineLayout vk_handle);
25std::string to_string(VkRenderPass vk_handle);
26std::string to_string(VkFramebuffer vk_handle);
27#endif
28
29const char *to_string(VkAttachmentLoadOp vk_attachment_load_op);
30const char *to_string(VkAttachmentStoreOp vk_attachment_store_op);
31const char *to_string(VkFilter vk_filter);
32const char *to_string(VkImageLayout vk_image_layout);
33const char *to_string(VkIndexType vk_index_type);
34const char *to_string(VkObjectType vk_object_type);
35const char *to_string(VkPipelineBindPoint vk_pipeline_bind_point);
36const char *to_string(VkResolveModeFlagBits vk_resolve_mode_flag_bits);
37const char *to_string(VkSubpassContents vk_subpass_contents);
38std::string to_string_vk_access_flags(VkAccessFlags vk_access_flags);
39std::string to_string_vk_dependency_flags(VkDependencyFlags vk_dependency_flags);
40std::string to_string_vk_image_aspect_flags(VkImageAspectFlags vk_image_aspect_flags);
41std::string to_string_vk_pipeline_stage_flags(VkPipelineStageFlags vk_pipeline_stage_flags);
42std::string to_string_vk_rendering_flags(VkRenderingFlags vk_rendering_flags);
43std::string to_string_vk_shader_stage_flags(VkShaderStageFlags vk_shader_stage_flags);
44std::string to_string(const VkBufferCopy &vk_buffer_copy, int indentation_level = 0);
45std::string to_string(const VkBufferImageCopy &vk_buffer_image_copy, int indentation_level = 0);
46std::string to_string(const VkBufferMemoryBarrier &vk_buffer_memory_barrier,
47 int indentation_level = 0);
48std::string to_string(const VkClearAttachment &vk_clear_attachment, int indentation_level = 0);
49std::string to_string(const VkClearDepthStencilValue &vk_clear_depth_stencil_value,
50 int indentation_level = 0);
51std::string to_string(const VkClearRect &vk_clear_rect, int indentation_level = 0);
52std::string to_string(const VkExtent2D &vk_extent2_d, int indentation_level = 0);
53std::string to_string(const VkExtent3D &vk_extent3_d, int indentation_level = 0);
54std::string to_string(const VkImageBlit &vk_image_blit, int indentation_level = 0);
55std::string to_string(const VkImageCopy &vk_image_copy, int indentation_level = 0);
56std::string to_string(const VkImageMemoryBarrier &vk_image_memory_barrier,
57 int indentation_level = 0);
58std::string to_string(const VkImageSubresourceLayers &vk_image_subresource_layers,
59 int indentation_level = 0);
60std::string to_string(const VkImageSubresourceRange &vk_image_subresource_range,
61 int indentation_level = 0);
62std::string to_string(const VkMemoryBarrier &vk_memory_barrier, int indentation_level = 0);
63std::string to_string(const VkOffset2D &vk_offset2_d, int indentation_level = 0);
64std::string to_string(const VkOffset3D &vk_offset3_d, int indentation_level = 0);
65std::string to_string(const VkRect2D &vk_rect2_d, int indentation_level = 0);
66std::string to_string(const VkRenderPassBeginInfo &vk_render_pass_begin_info,
67 int indentation_level = 0);
68std::string to_string(const VkRenderingAttachmentInfo &vk_rendering_attachment_info,
69 int indentation_level = 0);
70std::string to_string(const VkRenderingInfo &vk_rendering_info, int indentation_level = 0);
71
72} // namespace blender::gpu
const char * to_string(ShaderStage stage)
Definition mtl_shader.mm:52
std::string to_string_vk_rendering_flags(const VkRenderingFlags vk_rendering_flags)
std::string to_string_vk_dependency_flags(const VkDependencyFlags vk_dependency_flags)
std::string to_string_vk_shader_stage_flags(const VkShaderStageFlags vk_shader_stage_flags)
std::string to_string_vk_image_aspect_flags(const VkImageAspectFlags vk_image_aspect_flags)
std::string to_string_vk_pipeline_stage_flags(const VkPipelineStageFlags vk_pipeline_stage_flags)
std::string to_string_vk_access_flags(const VkAccessFlags vk_access_flags)