Blender V4.3
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
 

Functions

VkImageAspectFlags blender::gpu::to_vk_image_aspect_flag_bits (const eGPUTextureFormat format)
 
VkImageAspectFlags blender::gpu::to_vk_image_aspect_flag_bits (const eGPUFrameBufferBits buffers)
 
eGPUTextureFormat blender::gpu::to_gpu_format (const VkFormat format)
 
VkFormat blender::gpu::to_vk_format (const eGPUTextureFormat 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 eGPUTextureType type)
 
VkImageViewType blender::gpu::to_vk_image_view_type (const eGPUTextureType 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 eGPUFaceCullTest 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)