Hymn to Beauty
C++ 3D Engine
WebGPUSampler.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "../Interface/Sampler.hpp"
4
5#include "WebGPU.hpp"
6
7namespace Video {
8
10class WebGPUSampler : public Sampler {
11 public:
13
18 WebGPUSampler(WGPUDevice device, Filter filter, Clamping clamping);
19
21 ~WebGPUSampler() final;
22
24
27 WGPUSampler GetSampler() const;
28
29 private:
30 WebGPUSampler(const WebGPUSampler& other) = delete;
31
32 WGPUSampler sampler;
33};
34
35} // namespace Video
Determines how a texture should be sampled.
Definition: Sampler.hpp:6
Filter
The interpolation to apply.
Definition: Sampler.hpp:9
Clamping
How to handle sampling outside the texture dimensions.
Definition: Sampler.hpp:16
WebGPU implementation of Sampler.
Definition: WebGPUSampler.hpp:10
~WebGPUSampler() final
Destructor.
Definition: WebGPUSampler.cpp:50
WebGPUSampler(WGPUDevice device, Filter filter, Clamping clamping)
Create new WebGPU sampler.
Definition: WebGPUSampler.cpp:7
WGPUSampler GetSampler() const
Get the sampler.
Definition: WebGPUSampler.cpp:54
Definition: Editor.hpp:18