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

WebGPU implementation of Sampler. More...

#include <WebGPUSampler.hpp>

Inheritance diagram for Video::WebGPUSampler:
Video::Sampler

Public Member Functions

 WebGPUSampler (WGPUDevice device, Filter filter, Clamping clamping)
 Create new WebGPU sampler. More...
 
 ~WebGPUSampler () final
 Destructor. More...
 
WGPUSampler 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

WebGPU implementation of Sampler.

Constructor & Destructor Documentation

◆ WebGPUSampler()

Video::WebGPUSampler::WebGPUSampler ( WGPUDevice  device,
Filter  filter,
Clamping  clamping 
)

Create new WebGPU sampler.

Parameters
deviceThe WebGPU device.
filterThe interpolation to apply.
clampingHow to handle sampling outside the texture dimensions.

◆ ~WebGPUSampler()

Video::WebGPUSampler::~WebGPUSampler ( )
final

Destructor.

Member Function Documentation

◆ GetSampler()

WGPUSampler Video::WebGPUSampler::GetSampler ( ) const

Get the sampler.

Returns
The sampler.

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