Nameless Engine
Loading...
Searching...
No Matches
TextureFilteringPreference.h
1#pragma once
2
3// Standard.
4#include <variant>
5
6// Custom.
7#include "misc/Error.h"
8
9namespace ne {
10 class ConfigManager;
11
13 enum class TextureFilteringPreference : unsigned char {
14 // DON'T change offsets in this enum, they match sampler offsets in the HLSL sampler heap
15 POINT_FILTERING = 0,
16 LINEAR_FILTERING = 1,
17 ANISOTROPIC_FILTERING = 2,
18 FROM_RENDER_SETTINGS, //< Determined according to the texture filtering quality from the render
19 // settings.
20 };
21
28 void serializeTextureFilteringPreference(ConfigManager& config, TextureFilteringPreference value);
29
38 std::variant<TextureFilteringPreference, Error>
39 deserializeTextureFilteringPreference(ConfigManager& config);
40}