This patch adds a placeholder for the vulkan backend. When activated (`WITH_VULKAN_BACKEND=On` and `--gpu-backend vulkan`) it might open a blender screen, but nothing should be visible as none of the functions are implemented or otherwise crash on a nullptr. This is expected as this is just a placeholder. The goal is to add shader compilation +validation to this backend as one of the next steps so we can validate changes to existing shaders on OpenGL, Metal and Vulkan at the same time. Reviewed By: fclem Differential Revision: https://developer.blender.org/D16338
48 lines
593 B
C++
48 lines
593 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* Copyright 2022 Blender Foundation. All rights reserved. */
|
|
|
|
/** \file
|
|
* \ingroup gpu
|
|
*/
|
|
|
|
#include "vk_context.hh"
|
|
|
|
namespace blender::gpu {
|
|
|
|
void VKContext::activate()
|
|
{
|
|
}
|
|
|
|
void VKContext::deactivate()
|
|
{
|
|
}
|
|
|
|
void VKContext::begin_frame()
|
|
{
|
|
}
|
|
|
|
void VKContext::end_frame()
|
|
{
|
|
}
|
|
|
|
void VKContext::flush()
|
|
{
|
|
}
|
|
|
|
void VKContext::finish()
|
|
{
|
|
}
|
|
|
|
void VKContext::memory_statistics_get(int * /*total_mem*/, int * /*free_mem*/)
|
|
{
|
|
}
|
|
|
|
void VKContext::debug_group_begin(const char *, int)
|
|
{
|
|
}
|
|
|
|
void VKContext::debug_group_end()
|
|
{
|
|
}
|
|
|
|
} // namespace blender::gpu
|