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

Go to the source code of this file.

Classes

struct  blender::gpu::VKSubImageRange

Namespaces

namespace  blender
namespace  blender::gpu

Macros

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

Typedefs

using blender::gpu::TimelineValue = uint64_t

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 TextureFormat format)
VkImageAspectFlags blender::gpu::to_vk_image_aspect_flag_bits (const GPUFrameBufferBits buffers)
VkFormat blender::gpu::to_vk_format (const TextureFormat format)
TextureFormat 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 GPUTextureType type, const eImageViewUsage view_type, VKImageViewArrayed arrayed)
VkImageType blender::gpu::to_vk_image_type (const GPUTextureType 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 GPUFaceCullTest 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

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

◆ VK_EQ_TYPEID

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

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

◆ VMA_EXTERNAL_MEMORY_WIN32

#define VMA_EXTERNAL_MEMORY_WIN32   0

Definition at line 24 of file vk_common.hh.