|
Blender V4.3
|
#include <vk_backend.hh>
Inherits blender::gpu::GPUBackend.
Static Public Member Functions | |
| static bool | is_supported () |
| static VKBackend & | get () |
| static void | platform_init (const VKDevice &device) |
| static void | capabilities_init (VKDevice &device) |
Static Public Member Functions inherited from blender::gpu::GPUBackend | |
| static GPUBackend * | get () |
Public Attributes | |
| VKShaderCompiler | shader_compiler |
| VKDevice | device |
Friends | |
| class | VKContext |
| class | VKDescriptorSet |
| class | VKDescriptorSetTracker |
Definition at line 27 of file vk_backend.hh.
|
inline |
Definition at line 38 of file vk_backend.hh.
References platform_init().
|
inlinevirtual |
Definition at line 43 of file vk_backend.hh.
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 421 of file vk_backend.cc.
|
static |
Definition at line 518 of file vk_backend.cc.
References BLI_system_thread_count(), blender::gpu::GCaps, blender::gpu::GPUCapabilities::geometry_shader_support, blender::gpu::GPUCapabilities::max_batch_indices, blender::gpu::GPUCapabilities::max_batch_vertices, blender::gpu::GPUCapabilities::max_compute_shader_storage_blocks, max_ii(), blender::gpu::GPUCapabilities::max_images, blender::gpu::GPUCapabilities::max_parallel_compilations, blender::gpu::GPUCapabilities::max_samplers, blender::gpu::GPUCapabilities::max_shader_storage_buffer_bindings, blender::gpu::GPUCapabilities::max_storage_buffer_size, blender::gpu::GPUCapabilities::max_texture_3d_size, blender::gpu::GPUCapabilities::max_texture_layers, blender::gpu::GPUCapabilities::max_texture_size, blender::gpu::GPUCapabilities::max_textures, blender::gpu::GPUCapabilities::max_textures_frag, blender::gpu::GPUCapabilities::max_textures_geom, blender::gpu::GPUCapabilities::max_textures_vert, blender::gpu::GPUCapabilities::max_uniforms_frag, blender::gpu::GPUCapabilities::max_uniforms_vert, blender::gpu::GPUCapabilities::max_varying_floats, blender::gpu::GPUCapabilities::max_vertex_attribs, blender::gpu::GPUCapabilities::max_work_group_count, blender::gpu::GPUCapabilities::max_work_group_size, blender::gpu::GPUCapabilities::mem_stats_support, min_uu(), blender::gpu::VKDevice::physical_device_properties_get(), blender::gpu::VKDevice::physical_device_vulkan_11_features_get(), blender::gpu::GPUCapabilities::shader_draw_parameters_support, blender::gpu::GPUCapabilities::stencil_export_support, blender::gpu::VKDevice::supports_extension(), and blender::gpu::GPUCapabilities::texture_view_support.
Referenced by blender::gpu::VKDevice::init().
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 376 of file vk_backend.cc.
References blender::gpu::render_graph::VKDispatchCreateInfo::dispatch_node, blender::gpu::render_graph::VKDispatchData::group_count_x, blender::gpu::render_graph::VKDispatchData::group_count_y, blender::gpu::render_graph::VKDispatchData::group_count_z, and blender::gpu::render_graph::VKDispatchData::pipeline_data.
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 388 of file vk_backend.cc.
References BLI_assert, blender::gpu::render_graph::VKDispatchIndirectData::buffer, blender::gpu::render_graph::VKDispatchIndirectCreateInfo::dispatch_indirect_node, blender::gpu::render_graph::VKDispatchIndirectData::offset, blender::gpu::render_graph::VKDispatchIndirectData::pipeline_data, blender::gpu::unwrap(), and blender::gpu::VKStorageBuffer::vk_handle().
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 401 of file vk_backend.cc.
References BLI_assert, and GHOST_GetDrawingContext().
| bool blender::gpu::VKBackend::debug_capture_begin | ( | const char * | title | ) |
Definition at line 38 of file vk_debug.cc.
References device, blender::gpu::VKDevice::instance_get(), result, and UNUSED_VARS.
Referenced by blender::gpu::VKContext::debug_capture_begin(), and blender::gpu::VKContext::debug_capture_scope_begin().
| void blender::gpu::VKBackend::debug_capture_end | ( | ) |
Definition at line 58 of file vk_debug.cc.
References device, and blender::gpu::VKDevice::instance_get().
Referenced by blender::gpu::VKContext::debug_capture_end(), and blender::gpu::VKContext::debug_capture_scope_end().
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 366 of file vk_backend.cc.
Implements blender::gpu::GPUBackend.
Definition at line 426 of file vk_backend.cc.
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 431 of file vk_backend.cc.
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 436 of file vk_backend.cc.
|
inlinestatic |
Definition at line 92 of file vk_backend.hh.
References blender::gpu::GPUBackend::get().
Referenced by blender::gpu::VKContext::activate(), blender::gpu::VKDescriptorPools::allocate(), blender::gpu::VKImmediate::begin(), blender::gpu::render_graph::VKCommandBufferWrapper::begin_debug_utils_label(), blender::gpu::VKQueryPool::begin_query(), blender::gpu::render_graph::VKCommandBufferWrapper::begin_recording(), blender::gpu::render_graph::VKCommandBufferWrapper::begin_rendering(), blender::gpu::VKVertexAttributeObject::bind(), blender::gpu::VKBuffer::create(), blender::gpu::VKSampler::create(), blender::gpu::VKContext::debug_capture_begin(), blender::gpu::VKContext::debug_capture_end(), blender::gpu::VKContext::debug_capture_scope_begin(), blender::gpu::VKContext::debug_capture_scope_end(), blender::gpu::VKDescriptorSetLayouts::deinit(), blender::gpu::VKVertexBuffer::device_format_ensure(), blender::gpu::render_graph::VKCommandBufferWrapper::end_debug_utils_label(), blender::gpu::render_graph::VKCommandBufferWrapper::end_rendering(), blender::gpu::VKShader::ensure_and_get_compute_pipeline(), blender::gpu::VKShader::ensure_and_get_graphics_pipeline(), blender::gpu::VKVertexBuffer::ensure_buffer_view(), blender::gpu::VKShader::finalize(), blender::gpu::VKShaderModule::finalize(), blender::gpu::VKBuffer::flush(), blender::gpu::VKShader::fragment_interface_declare(), blender::gpu::VKBuffer::free(), blender::gpu::VKSampler::free(), blender::gpu::VKPipelinePool::free_data(), blender::gpu::VKQueryPool::get_occlusion_result(), blender::gpu::VKDescriptorSetLayouts::get_or_create(), blender::gpu::VKPipelinePool::get_or_create_compute_pipeline(), blender::gpu::VKPipelinePool::get_or_create_graphics_pipeline(), blender::gpu::VKPipelinePool::init(), blender::gpu::VKShaderInterface::init(), blender::gpu::VKTexture::init_internal(), blender::gpu::VKContext::memory_statistics_get(), blender::gpu::VKPipelinePool::read_from_disk(), blender::gpu::VKVertexBuffer::release_data(), blender::gpu::VKPipelinePool::remove(), blender::gpu::VKFrameBuffer::rendering_ensure(), blender::gpu::VKDescriptorPools::reset(), blender::gpu::VKFence::signal(), blender::gpu::render_graph::VKCommandBufferWrapper::submit_with_cpu_synchronization(), blender::gpu::VKContext::sync_backbuffer(), blender::gpu::VKDescriptorSetTracker::update_descriptor_set(), blender::gpu::VKDescriptorSetTracker::upload_descriptor_sets(), blender::gpu::VKShader::vertex_interface_declare(), blender::gpu::VKContext::VKContext(), blender::gpu::VKImageView::VKImageView(), blender::gpu::render_graph::VKCommandBufferWrapper::wait_for_cpu_synchronization(), blender::gpu::VKPipelinePool::write_to_disk(), blender::gpu::render_graph::VKCommandBufferWrapper::~VKCommandBufferWrapper(), blender::gpu::VKContext::~VKContext(), blender::gpu::VKDescriptorPools::~VKDescriptorPools(), blender::gpu::VKFence::~VKFence(), blender::gpu::VKImageView::~VKImageView(), blender::gpu::VKQueryPool::~VKQueryPool(), blender::gpu::VKShader::~VKShader(), blender::gpu::VKShaderModule::~VKShaderModule(), and blender::gpu::VKTexture::~VKTexture().
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 441 of file vk_backend.cc.
|
static |
Does the running platform contain any device that meets the minimum requirements to start the Vulkan backend.
Function is used to validate that a Blender UI can be started. It calls vulkan API commands directly to ensure no parts of Blender needs to be initialized.
Definition at line 139 of file vk_backend.cc.
References CLG_logref_init(), CLOG_ERROR, CLOG_INFO, CLOG_WARN, blender::Array< T, InlineBufferCapacity, Allocator >::data(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::gpu::LOG, and blender::gpu::missing_capabilities_get().
Referenced by gpu_backend_supported().
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 446 of file vk_backend.cc.
|
static |
Definition at line 273 of file vk_backend.cc.
References CLOG_INFO, blender::gpu::determine_os_type(), blender::gpu::VKDevice::device_type(), blender::gpu::GPUPlatformGlobal::devices, blender::gpu::VKDevice::driver_type(), blender::gpu::VKDevice::driver_version(), blender::gpu::GPG, GPU_ARCHITECTURE_IMR, GPU_BACKEND_VULKAN, GPU_SUPPORT_LEVEL_SUPPORTED, blender::gpu::GPUPlatformGlobal::init(), LOG, blender::gpu::VKDevice::physical_device_properties_get(), and blender::gpu::VKDevice::vendor_name().
Referenced by VKBackend().
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 451 of file vk_backend.cc.
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 481 of file vk_backend.cc.
References BLI_assert_msg, and blender::gpu::VKThreadData::rendering_depth.
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 488 of file vk_backend.cc.
References BLI_assert_msg, BLI_thread_is_main(), blender::gpu::VKResourcePool::discard_pool, G, blender::gpu::VKThreadData::rendering_depth, blender::gpu::VKResourcePool::reset(), and blender::gpu::VKThreadData::resource_pool_get().
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 516 of file vk_backend.cc.
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 368 of file vk_backend.cc.
References blender::gpu::VKDevice::is_initialized(), and blender::gpu::VKDevice::reinit().
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 456 of file vk_backend.cc.
|
inlineoverridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 78 of file vk_backend.hh.
References blender::gpu::VKShaderCompiler::cache_dir_clear_old().
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 471 of file vk_backend.cc.
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 461 of file vk_backend.cc.
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 466 of file vk_backend.cc.
|
overridevirtual |
Implements blender::gpu::GPUBackend.
Definition at line 476 of file vk_backend.cc.
|
friend |
Definition at line 106 of file vk_backend.hh.
|
friend |
Definition at line 107 of file vk_backend.hh.
|
friend |
Definition at line 108 of file vk_backend.hh.
| VKDevice blender::gpu::VKBackend::device |
Definition at line 36 of file vk_backend.hh.
Referenced by blender::gpu::VKContext::activate(), blender::gpu::VKDescriptorPools::allocate(), blender::gpu::VKImmediate::begin(), blender::gpu::render_graph::VKCommandBufferWrapper::begin_debug_utils_label(), blender::gpu::VKQueryPool::begin_query(), blender::gpu::render_graph::VKCommandBufferWrapper::begin_recording(), blender::gpu::render_graph::VKCommandBufferWrapper::begin_rendering(), blender::gpu::VKVertexAttributeObject::bind(), blender::gpu::VKBuffer::create(), blender::gpu::VKSampler::create(), debug_capture_begin(), debug_capture_end(), blender::gpu::VKDescriptorSetLayouts::deinit(), blender::gpu::VKVertexBuffer::device_format_ensure(), blender::gpu::render_graph::VKCommandBufferWrapper::end_debug_utils_label(), blender::gpu::render_graph::VKCommandBufferWrapper::end_rendering(), blender::gpu::VKShader::ensure_and_get_compute_pipeline(), blender::gpu::VKShader::ensure_and_get_graphics_pipeline(), blender::gpu::VKVertexBuffer::ensure_buffer_view(), blender::gpu::VKShader::finalize(), blender::gpu::VKShaderModule::finalize(), blender::gpu::VKBuffer::flush(), blender::gpu::VKShader::fragment_interface_declare(), blender::gpu::VKBuffer::free(), blender::gpu::VKSampler::free(), blender::gpu::VKPipelinePool::free_data(), blender::gpu::VKQueryPool::get_occlusion_result(), blender::gpu::VKDescriptorSetLayouts::get_or_create(), blender::gpu::VKPipelinePool::get_or_create_compute_pipeline(), blender::gpu::VKPipelinePool::get_or_create_graphics_pipeline(), blender::gpu::VKPipelinePool::init(), blender::gpu::VKShaderInterface::init(), blender::gpu::VKTexture::init_internal(), blender::gpu::VKContext::memory_statistics_get(), blender::gpu::VKPipelinePool::read_from_disk(), blender::gpu::VKVertexBuffer::release_data(), blender::gpu::VKPipelinePool::remove(), blender::gpu::VKFrameBuffer::rendering_ensure(), blender::gpu::VKDescriptorPools::reset(), blender::gpu::VKFence::signal(), blender::gpu::render_graph::VKCommandBufferWrapper::submit_with_cpu_synchronization(), blender::gpu::VKContext::sync_backbuffer(), blender::gpu::VKDescriptorSetTracker::update_descriptor_set(), blender::gpu::VKDescriptorSetTracker::upload_descriptor_sets(), blender::gpu::VKShader::vertex_interface_declare(), blender::gpu::VKImageView::VKImageView(), blender::gpu::render_graph::VKCommandBufferWrapper::wait_for_cpu_synchronization(), blender::gpu::VKPipelinePool::write_to_disk(), blender::gpu::render_graph::VKCommandBufferWrapper::~VKCommandBufferWrapper(), blender::gpu::VKContext::~VKContext(), blender::gpu::VKDescriptorPools::~VKDescriptorPools(), blender::gpu::VKFence::~VKFence(), blender::gpu::VKImageView::~VKImageView(), blender::gpu::VKQueryPool::~VKQueryPool(), blender::gpu::VKShader::~VKShader(), blender::gpu::VKShaderModule::~VKShaderModule(), and blender::gpu::VKTexture::~VKTexture().
| VKShaderCompiler blender::gpu::VKBackend::shader_compiler |
Definition at line 34 of file vk_backend.hh.
Referenced by blender::gpu::VKContext::VKContext().