Hymn to Beauty
C++ 3D Engine
Video::VulkanSampler Class Reference

Vulkan implementation of Sampler. More...

#include <VulkanSampler.hpp>

Inheritance diagram for Video::VulkanSampler:
Video::Sampler

Public Member Functions

 VulkanSampler (VkDevice device, Filter filter, Clamping clamping)
 Create new Vulkan sampler. More...
 
 ~VulkanSampler () final
 Destructor. More...
 
VkSampler GetSampler () const
 Get the sampler. More...
 
- Public Member Functions inherited from Video::Sampler
 Sampler ()
 Create a new sampler. More...
 
virtual ~Sampler ()
 Destructor. More...
 

Additional Inherited Members

- Public Types inherited from Video::Sampler
enum class  Filter { NEAREST , LINEAR , COUNT }
 The interpolation to apply. More...
 
enum class  Clamping { REPEAT , CLAMP_TO_EDGE , COUNT }
 How to handle sampling outside the texture dimensions. More...
 

Detailed Description

Vulkan implementation of Sampler.

Constructor & Destructor Documentation

◆ VulkanSampler()

Video::VulkanSampler::VulkanSampler ( VkDevice  device,
Filter  filter,
Clamping  clamping 
)

Create new Vulkan sampler.

Parameters
deviceThe Vulkan device.
filterThe interpolation to apply.
clampingHow to handle sampling outside the texture dimensions.
Todo:
Anisotropic filtering.

◆ ~VulkanSampler()

Video::VulkanSampler::~VulkanSampler ( )
final

Destructor.

Member Function Documentation

◆ GetSampler()

VkSampler Video::VulkanSampler::GetSampler ( ) const

Get the sampler.

Returns
The sampler.

The documentation for this class was generated from the following files: