Mandrill 2025.6.0
Loading...
Searching...
No Matches
Mandrill::Sampler Class Reference

Sampler class for managing texture samplers in Vulkan. More...

#include <Sampler.h>

Public Member Functions

MANDRILL_API Sampler (ptr< Device > pDevice, VkFilter magFilter=VK_FILTER_LINEAR, VkFilter minFilter=VK_FILTER_LINEAR, VkSamplerMipmapMode mipmapMode=VK_SAMPLER_MIPMAP_MODE_NEAREST, VkSamplerAddressMode addressModeU=VK_SAMPLER_ADDRESS_MODE_REPEAT, VkSamplerAddressMode addressModeV=VK_SAMPLER_ADDRESS_MODE_REPEAT, VkSamplerAddressMode addressModeW=VK_SAMPLER_ADDRESS_MODE_REPEAT)
 Create a new texture sampler.
 
MANDRILL_API ~Sampler ()
 Destructor for sampler.
 
MANDRILL_API VkSampler getSampler () const
 Get the sampler handle.
 

Detailed Description

Sampler class for managing texture samplers in Vulkan.

Constructor & Destructor Documentation

◆ Sampler()

Sampler::Sampler ( ptr< Device pDevice,
VkFilter  magFilter = VK_FILTER_LINEAR,
VkFilter  minFilter = VK_FILTER_LINEAR,
VkSamplerMipmapMode  mipmapMode = VK_SAMPLER_MIPMAP_MODE_NEAREST,
VkSamplerAddressMode  addressModeU = VK_SAMPLER_ADDRESS_MODE_REPEAT,
VkSamplerAddressMode  addressModeV = VK_SAMPLER_ADDRESS_MODE_REPEAT,
VkSamplerAddressMode  addressModeW = VK_SAMPLER_ADDRESS_MODE_REPEAT 
)

Create a new texture sampler.

Parameters
pDeviceDevice to use
magFilterMagnification filter
minFilterMinification filter
mipmapModeMIP map mode
addressModeUAddress mode/wrapping mode U
addressModeVAddress mode/wrapping mode V
addressModeWAddress mode/wrapping mode W

Member Function Documentation

◆ getSampler()

MANDRILL_API VkSampler Mandrill::Sampler::getSampler ( ) const
inline

Get the sampler handle.

Returns
Sampler handle

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