Blender V4.3
vk_common.hh File Reference
#include <typeinfo>
#include <vulkan/vulkan.h>
#include "vk_mem_alloc.h"
#include "GPU_index_buffer.hh"
#include "gpu_query.hh"
#include "gpu_shader_create_info.hh"
#include "gpu_texture_private.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::gpu
 

Macros

#define VK_EQ_TYPEID(name, name2)
 
#define NOT_YET_IMPLEMENTED    printf("%s:%d `%s` not implemented yet\n", __FILE__, __LINE__, __func__);
 

Enumerations

enum class  blender::gpu::eImageViewUsage { blender::gpu::ShaderBinding , blender::gpu::Attachment }
 
enum class  blender::gpu::VKImageViewArrayed { blender::gpu::DONT_CARE , blender::gpu::NOT_ARRAYED , blender::gpu::ARRAYED }
 

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)
 
VkFormat blender::gpu::to_vk_format (const eGPUTextureFormat format)
 
eGPUTextureFormat blender::gpu::to_gpu_format (const VkFormat format)
 
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)
 
VkComponentSwizzle blender::gpu::to_vk_component_swizzle (const char swizzle)
 
VkImageViewType blender::gpu::to_vk_image_view_type (const eGPUTextureType type, const eImageViewUsage view_type, VKImageViewArrayed arrayed)
 
VkImageType blender::gpu::to_vk_image_type (const eGPUTextureType type)
 
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)
 
VkDescriptorType blender::gpu::to_vk_descriptor_type (const shader::ShaderCreateInfo::Resource &resource)
 
template<typename T >
VkObjectType blender::gpu::to_vk_object_type (T)
 

Macro Definition Documentation

◆ NOT_YET_IMPLEMENTED

◆ VK_EQ_TYPEID

#define VK_EQ_TYPEID ( name,
name2 )
Value:
if (tid == typeid(name)) { \
return VK_OBJECT_TYPE_##name2; \
}

Referenced by blender::gpu::to_vk_object_type().