Vulkan: Show Missing Implementations

This PR will print a message when a vulkan method isn't implemented.
So we can keep track of what still needs to be implemented.

Pull Request: https://projects.blender.org/blender/blender/pulls/112671
This commit is contained in:
Jeroen Bakker 2023-09-21 15:21:32 +02:00
parent 01927e1e45
commit dd3e23e812
4 changed files with 40 additions and 9 deletions

View File

@ -98,7 +98,10 @@ void VKBackend::platform_exit()
void VKBackend::delete_resources() {}
void VKBackend::samplers_update() {}
void VKBackend::samplers_update()
{
NOT_YET_IMPLEMENTED
}
void VKBackend::compute_dispatch(int groups_x_len, int groups_y_len, int groups_z_len)
{

View File

@ -7,11 +7,18 @@
*/
#include "vk_fence.hh"
#include "vk_common.hh"
namespace blender::gpu {
void VKFence::signal() {}
void VKFence::signal()
{
NOT_YET_IMPLEMENTED
}
void VKFence::wait() {}
void VKFence::wait()
{
NOT_YET_IMPLEMENTED
}
} // namespace blender::gpu

View File

@ -7,15 +7,28 @@
*/
#include "vk_query.hh"
#include "vk_common.hh"
namespace blender::gpu {
void VKQueryPool::init(GPUQueryType /*type*/) {}
void VKQueryPool::init(GPUQueryType /*type*/)
{
NOT_YET_IMPLEMENTED
}
void VKQueryPool::begin_query() {}
void VKQueryPool::begin_query()
{
NOT_YET_IMPLEMENTED
}
void VKQueryPool::end_query() {}
void VKQueryPool::end_query()
{
NOT_YET_IMPLEMENTED
}
void VKQueryPool::get_occlusion_result(MutableSpan<uint32_t> /*r_values*/) {}
void VKQueryPool::get_occlusion_result(MutableSpan<uint32_t> /*r_values*/)
{
NOT_YET_IMPLEMENTED
}
} // namespace blender::gpu

View File

@ -659,7 +659,10 @@ void VKShader::compute_shader_from_glsl(MutableSpan<const char *> sources)
build_shader_module(sources, shaderc_compute_shader, &compute_module_);
}
void VKShader::warm_cache(int /*limit*/) {}
void VKShader::warm_cache(int /*limit*/)
{
NOT_YET_IMPLEMENTED
}
bool VKShader::finalize(const shader::ShaderCreateInfo *info)
{
@ -940,14 +943,19 @@ bool VKShader::finalize_descriptor_set_layouts(VkDevice vk_device,
void VKShader::transform_feedback_names_set(Span<const char *> /*name_list*/,
eGPUShaderTFBType /*geom_type*/)
{
NOT_YET_IMPLEMENTED
}
bool VKShader::transform_feedback_enable(GPUVertBuf *)
{
NOT_YET_IMPLEMENTED
return false;
}
void VKShader::transform_feedback_disable() {}
void VKShader::transform_feedback_disable()
{
NOT_YET_IMPLEMENTED
}
void VKShader::update_graphics_pipeline(VKContext &context,
const GPUPrimType prim_type,