VOX
A little voxel engine
Loading...
Searching...
No Matches
Command.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "vk_define.hpp"
4
5#include <vector>
6
8{
9
10public:
11
13 VkDevice device,
14 VkCommandPool command_pool,
15 VkQueue queue
16 );
17
20
21 SingleTimeCommand(SingleTimeCommand && other) noexcept;
23
25
26 void end();
27
28 operator VkCommandBuffer() const
29 {
30 return m_command_buffer;
31 }
32
33private:
34
35 VkDevice m_device;
36 VkCommandPool m_command_pool;
37 VkQueue m_queue;
38 VkCommandBuffer m_command_buffer;
39
40};
Definition: Command.hpp:8
void end()
Definition: Command.cpp:79
~SingleTimeCommand()
Definition: Command.cpp:71
SingleTimeCommand & operator=(const SingleTimeCommand &)=delete
SingleTimeCommand(const SingleTimeCommand &)=delete