Lugdunum
0.1.0
src
lug
Graphics
Vulkan
API
QueueFamily.cpp
Go to the documentation of this file.
1
#include <
lug/Graphics/Vulkan/API/QueueFamily.hpp
>
2
3
namespace
lug
{
4
namespace
Graphics {
5
namespace
Vulkan
{
6
namespace
API {
7
8
QueueFamily::QueueFamily
(uint32_t idx, VkQueueFlags flags) : _idx(idx), _flags(flags) {}
9
10
QueueFamily::QueueFamily
(
QueueFamily
&& queue) {
11
_idx
= queue._idx;
12
_flags
= queue._flags;
13
_queues
= std::move(queue._queues);
14
_queuesIndices
= std::move(queue._queuesIndices);
15
16
queue._idx = 0;
17
queue._flags = 0;
18
}
19
20
QueueFamily
&
QueueFamily::operator=
(
QueueFamily
&& queue) {
21
_idx
= queue._idx;
22
_flags
= queue._flags;
23
_queues
= std::move(queue._queues);
24
_queuesIndices
= std::move(queue._queuesIndices);
25
26
queue._idx = 0;
27
queue._flags = 0;
28
29
return
*
this
;
30
}
31
32
}
// API
33
}
// Vulkan
34
}
// Graphics
35
}
// lug
lug::Graphics::Vulkan::API::QueueFamily::QueueFamily
QueueFamily()=default
lug::Graphics::Vulkan::API::QueueFamily::_queues
std::vector< Queue > _queues
Definition:
QueueFamily.hpp:53
lug::Graphics::Vulkan::API::QueueFamily::operator=
QueueFamily & operator=(const QueueFamily &)=delete
lug::Graphics::Vulkan::API::QueueFamily::_idx
uint32_t _idx
Definition:
QueueFamily.hpp:49
Vulkan
Definition:
Vulkan.hpp:155
lug
Definition:
Application.hpp:11
lug::Graphics::Vulkan::API::QueueFamily
Definition:
QueueFamily.hpp:18
QueueFamily.hpp
lug::Graphics::Vulkan::API::QueueFamily::_flags
VkQueueFlags _flags
Definition:
QueueFamily.hpp:51
lug::Graphics::Vulkan::API::QueueFamily::_queuesIndices
std::unordered_map< std::string, uint32_t > _queuesIndices
Definition:
QueueFamily.hpp:54
Generated by
1.8.13