Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Sampler.hpp
1#pragma once
2
3#include <stdint.h>
4#include "Formats.hpp"
5
6namespace Grindstone::GraphicsAPI {
15 TextureWrapMode wrapModeU = TextureWrapMode::Repeat;
16 TextureWrapMode wrapModeV = TextureWrapMode::Repeat;
17 TextureWrapMode wrapModeW = TextureWrapMode::Repeat;
18 TextureFilter mipFilter = TextureFilter::Nearest;
19 TextureFilter minFilter = TextureFilter::Linear;
20 TextureFilter magFilter = TextureFilter::Linear;
21 // Anistropy dictates how pixels are blended together as the angle to its normal
22 // increase. When anisotropy == 0, it will be disabled.
23 float anistropy = 0.0f;
24 float mipMin = -1000.f;
25 float mipMax = 1000.0f;
26 float mipBias = 0.0f;
27 };
28
31 class Sampler {
32 public:
33 struct CreateInfo {
34 const char* debugName = nullptr;
35 SamplerOptions options;
36 };
37
38 virtual ~Sampler() {};
39 };
40}
Definition Sampler.hpp:31