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

Determines how a texture should be sampled. More...

#include <Sampler.hpp>

Inheritance diagram for Video::Sampler:
Video::OpenGLSampler Video::VulkanSampler Video::WebGPUSampler

Public Types

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...
 

Public Member Functions

 Sampler ()
 Create a new sampler. More...
 
virtual ~Sampler ()
 Destructor. More...
 

Detailed Description

Determines how a texture should be sampled.

Member Enumeration Documentation

◆ Clamping

enum class Video::Sampler::Clamping
strong

How to handle sampling outside the texture dimensions.

Enumerator
REPEAT 

Repeat the texture.

CLAMP_TO_EDGE 

Clamp to the edge of the texture.

COUNT 

Number of entries in enum.

◆ Filter

enum class Video::Sampler::Filter
strong

The interpolation to apply.

Enumerator
NEAREST 

Nearest neighbor.

LINEAR 

Bilinear filtering.

COUNT 

Number of entries in enum.

Constructor & Destructor Documentation

◆ Sampler()

Video::Sampler::Sampler ( )
inline

Create a new sampler.

◆ ~Sampler()

virtual Video::Sampler::~Sampler ( )
inlinevirtual

Destructor.


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