Lugdunum
0.1.0
include
lug
Graphics
Vulkan
API
Sampler.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
lug/Graphics/Export.hpp
>
4
#include <
lug/Graphics/Vulkan/Vulkan.hpp
>
5
6
namespace
lug
{
7
namespace
Graphics {
8
namespace
Vulkan
{
9
namespace
API {
10
11
namespace
Builder {
12
class
Sampler;
13
}
// Builder
14
15
class
Device;
16
17
class
LUG_GRAPHICS_API
Sampler
{
18
friend
class
Builder::Sampler
;
19
20
public
:
21
Sampler
() =
default
;
22
23
Sampler
(
const
Sampler
&) =
delete
;
24
Sampler
(
Sampler
&& sampler);
25
26
Sampler
& operator=(
const
Sampler
&) =
delete
;
27
Sampler
& operator=(
Sampler
&& sampler);
28
29
~
Sampler
();
30
31
explicit
operator
VkSampler()
const
{
32
return
_sampler;
33
}
34
35
void
destroy();
36
37
private
:
38
explicit
Sampler
(VkSampler sampler,
const
Device
* device);
39
40
private
:
41
VkSampler _sampler{VK_NULL_HANDLE};
42
const
Device
* _device{
nullptr
};
43
};
44
45
}
// API
46
}
// Vulkan
47
}
// Graphics
48
}
// lug
LUG_GRAPHICS_API
#define LUG_GRAPHICS_API
Definition:
Export.hpp:11
lug::Graphics::Vulkan::API::Builder::Sampler
Definition:
Sampler.hpp:16
Vulkan
Definition:
Vulkan.hpp:155
lug::Graphics::Vulkan::API::Device
Definition:
Device.hpp:16
Vulkan.hpp
lug
Definition:
Application.hpp:11
lug::Graphics::Vulkan::API::Sampler
Definition:
Sampler.hpp:17
Export.hpp
Generated by
1.8.13