diff options
Diffstat (limited to 'src/libixion/compute_engine_vulkan.hpp')
-rw-r--r-- | src/libixion/compute_engine_vulkan.hpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/libixion/compute_engine_vulkan.hpp b/src/libixion/compute_engine_vulkan.hpp new file mode 100644 index 0000000..7d6f581 --- /dev/null +++ b/src/libixion/compute_engine_vulkan.hpp @@ -0,0 +1,39 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_IXION_COMPUTE_ENGINE_VULKAN_HPP +#define INCLUDED_IXION_COMPUTE_ENGINE_VULKAN_HPP + +#include "ixion/compute_engine.hpp" + +#include "vulkan_obj.hpp" + +namespace ixion { namespace draft { + +class compute_engine_vulkan final : public compute_engine +{ + vk_instance m_instance; + vk_device m_device; + vk_command_pool m_cmd_pool; + + void copy_to_device_local_buffer( + array& io, vk_buffer& host_buffer, vk_buffer& device_buffer); + +public: + compute_engine_vulkan(); + virtual ~compute_engine_vulkan() override; + + virtual std::string_view get_name() const override; + + virtual void compute_fibonacci(array& io) override; +}; + +}} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |