blob: 7d6f5819c0a1d300dda770defeb52ecded9b6b5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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: */
|