From 0e6f2d9fe0f49de658414bf16a9babab61f1895a Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Mon, 31 Oct 2022 16:01:02 +0100 Subject: GPU: Add placeholder for Vulkan backend. 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 --- source/blender/gpu/vulkan/vk_uniform_buffer.cc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 source/blender/gpu/vulkan/vk_uniform_buffer.cc (limited to 'source/blender/gpu/vulkan/vk_uniform_buffer.cc') diff --git a/source/blender/gpu/vulkan/vk_uniform_buffer.cc b/source/blender/gpu/vulkan/vk_uniform_buffer.cc new file mode 100644 index 00000000000..8ef5b19273a --- /dev/null +++ b/source/blender/gpu/vulkan/vk_uniform_buffer.cc @@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later + * Copyright 2022 Blender Foundation. All rights reserved. */ + +/** \file + * \ingroup gpu + */ + +#include "vk_uniform_buffer.hh" + +namespace blender::gpu { + +void VKUniformBuffer::update(const void * /*data*/) +{ +} + +void VKUniformBuffer::bind(int /*slot*/) +{ +} + +void VKUniformBuffer::unbind() +{ +} + +} // namespace blender::gpu \ No newline at end of file -- cgit v1.2.3