Mandrill 2025.6.0
Loading...
Searching...
No Matches
Sampler.h
1#pragma once
2
3#include "Common.h"
4
5#include "Device.h"
6
7namespace Mandrill
8{
12 class Sampler
13 {
14 public:
15 MANDRILL_NON_COPYABLE(Sampler)
16
17
27 MANDRILL_API Sampler(ptr<Device> pDevice, VkFilter magFilter = VK_FILTER_LINEAR,
28 VkFilter minFilter = VK_FILTER_LINEAR,
29 VkSamplerMipmapMode mipmapMode = VK_SAMPLER_MIPMAP_MODE_NEAREST,
30 VkSamplerAddressMode addressModeU = VK_SAMPLER_ADDRESS_MODE_REPEAT,
31 VkSamplerAddressMode addressModeV = VK_SAMPLER_ADDRESS_MODE_REPEAT,
32 VkSamplerAddressMode addressModeW = VK_SAMPLER_ADDRESS_MODE_REPEAT);
33
37 MANDRILL_API ~Sampler();
38
43 MANDRILL_API VkSampler getSampler() const
44 {
45 return mSampler;
46 }
47
48 private:
49 ptr<Device> mpDevice;
50
51 VkSampler mSampler;
52 };
53} // namespace Mandrill
Sampler class for managing texture samplers in Vulkan.
Definition Sampler.h:13
MANDRILL_API VkSampler getSampler() const
Get the sampler handle.
Definition Sampler.h:43
MANDRILL_API ~Sampler()
Destructor for sampler.
Definition Sampler.cpp:34