Blender V5.0
vk_common.cc File Reference
#include "BLI_utildefines.h"
#include "vk_common.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::gpu

Macros

#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)
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)
template<typename T>
void blender::gpu::copy_color (T dst[4], const T *src)
VkClearColorValue blender::gpu::to_vk_clear_color_value (const eGPUDataFormat format, const void *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)

Macro Definition Documentation

◆ CASE

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