Blender V5.3
vk_common.cc File Reference
#include "BLI_utildefines.hh"
#include "GPU_texture.hh"
#include "vk_backend.hh"
#include "vk_common.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::gpu

Macros

#define CASE(a, b, c, blender_enum, vk_enum, e, f, g, h)
#define CASE(a, b, c, blender_enum, vk_enum, e, f, g, h)

Functions

VkImageAspectFlags blender::gpu::to_vk_image_aspect_flag_bits (const TextureFormat format)
VkImageAspectFlags blender::gpu::to_vk_image_aspect_flag_bits (const GPUFrameBufferBits buffers)
TextureFormat blender::gpu::to_gpu_format (const VkFormat format)
std::string blender::gpu::to_gpu_format_string (VkFormat format)
VkFormat blender::gpu::to_vk_format (const TextureFormat format)
static VkFormat blender::gpu::to_vk_format_norm (const GPUVertCompType type, const uint32_t size)
static VkFormat blender::gpu::to_vk_format_float (const GPUVertCompType type, const uint32_t size)
static VkFormat blender::gpu::to_vk_format_int (const GPUVertCompType type, const uint32_t size)
VkFormat blender::gpu::to_vk_format (const GPUVertCompType type, const uint32_t size, GPUVertFetchMode fetch_mode)
VkFormat blender::gpu::to_vk_format (const shader::Type type)
VkQueryType blender::gpu::to_vk_query_type (const GPUQueryType query_type)
VkImageType blender::gpu::to_vk_image_type (const GPUTextureType type)
VkImageViewType blender::gpu::to_vk_image_view_type (const GPUTextureType type, const eImageViewUsage view_type, VKImageViewArrayed arrayed)
VkComponentSwizzle blender::gpu::to_vk_component_swizzle (const char swizzle)
VkClearColorValue blender::gpu::to_vk_clear_color_value (const eGPUDataFormat format, const double4 data)
VkIndexType blender::gpu::to_vk_index_type (const GPUIndexBufType index_type)
VkPrimitiveTopology blender::gpu::to_vk_primitive_topology (const GPUPrimType prim_type)
VkCullModeFlags blender::gpu::to_vk_cull_mode_flags (const GPUFaceCullTest cull_test)
VkSamplerAddressMode blender::gpu::to_vk_sampler_address_mode (const GPUSamplerExtendMode extend_mode)
static VkDescriptorType blender::gpu::to_vk_descriptor_type_image (const shader::ImageType &image_type)
static VkDescriptorType blender::gpu::to_vk_descriptor_type_sampler (const shader::ImageType &image_type)
VkDescriptorType blender::gpu::to_vk_descriptor_type (const shader::ShaderCreateInfo::Resource &resource)
bool blender::gpu::vk_need_extended_usage_for_storage_image (const eGPUTextureUsage usage, const GPUTextureFormatFlag format_flag)
VkFormat blender::gpu::vk_extended_usage_storage_image_format (const VkFormat format)
VkImageCreateFlags blender::gpu::to_vk_image_create (const GPUTextureType texture_type, const GPUTextureFormatFlag format_flag, eGPUTextureUsage usage)
VkImageUsageFlags blender::gpu::to_vk_image_usage (const eGPUTextureUsage usage, const GPUTextureFormatFlag format_flag, bool use_image_host_copy)

Macro Definition Documentation

◆ CASE [1/2]

#define CASE ( a,
b,
c,
blender_enum,
vk_enum,
e,
f,
g,
h )
Value:
case TextureFormat::blender_enum: \
return VK_FORMAT_##vk_enum;

◆ CASE [2/2]

#define CASE ( a,
b,
c,
blender_enum,
vk_enum,
e,
f,
g,
h )
Value:
case VK_FORMAT_##vk_enum: \
return STRINGIFY(blender_enum);
#define STRINGIFY(x)