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
42 lines
833 B
C++
42 lines
833 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* Copyright 2022 Blender Foundation. All rights reserved. */
|
|
|
|
/** \file
|
|
* \ingroup gpu
|
|
*/
|
|
|
|
#include "vk_vertex_buffer.hh"
|
|
|
|
#include "vk_storage_buffer.hh"
|
|
|
|
namespace blender::gpu {
|
|
|
|
void VKStorageBuffer::update(const void * /*data*/)
|
|
{
|
|
}
|
|
|
|
void VKStorageBuffer::bind(int /*slot*/)
|
|
{
|
|
}
|
|
|
|
void VKStorageBuffer::unbind()
|
|
{
|
|
}
|
|
|
|
void VKStorageBuffer::clear(eGPUTextureFormat /* internal_format*/,
|
|
eGPUDataFormat /*data_format*/,
|
|
void * /*data*/)
|
|
{
|
|
}
|
|
void VKStorageBuffer::copy_sub(VertBuf * /*src*/,
|
|
uint /*dst_offset*/,
|
|
uint /*src_offset*/,
|
|
uint /*copy_size*/)
|
|
{
|
|
}
|
|
|
|
void VKStorageBuffer::read(void * /*data*/)
|
|
{
|
|
}
|
|
|
|
} // namespace blender::gpu
|