cesium-native 0.43.0
Loading...
Searching...
No Matches
Sampler.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumGltf/Library.h>
6#include <CesiumGltf/NamedObject.h>
7
8#include <optional>
9
10namespace CesiumGltf {
14struct CESIUMGLTF_API Sampler final : public CesiumGltf::NamedObject {
18 static constexpr const char* TypeName = "Sampler";
19
23 struct MagFilter {
25 static constexpr int32_t NEAREST = 9728;
26
28 static constexpr int32_t LINEAR = 9729;
29 };
30
34 struct MinFilter {
36 static constexpr int32_t NEAREST = 9728;
37
39 static constexpr int32_t LINEAR = 9729;
40
42 static constexpr int32_t NEAREST_MIPMAP_NEAREST = 9984;
43
45 static constexpr int32_t LINEAR_MIPMAP_NEAREST = 9985;
46
48 static constexpr int32_t NEAREST_MIPMAP_LINEAR = 9986;
49
51 static constexpr int32_t LINEAR_MIPMAP_LINEAR = 9987;
52 };
53
57 struct WrapS {
59 static constexpr int32_t CLAMP_TO_EDGE = 33071;
60
62 static constexpr int32_t MIRRORED_REPEAT = 33648;
63
65 static constexpr int32_t REPEAT = 10497;
66 };
67
71 struct WrapT {
73 static constexpr int32_t CLAMP_TO_EDGE = 33071;
74
76 static constexpr int32_t MIRRORED_REPEAT = 33648;
77
79 static constexpr int32_t REPEAT = 10497;
80 };
81
88 std::optional<int32_t> magFilter;
89
96 std::optional<int32_t> minFilter;
97
106 int32_t wrapS = WrapS::REPEAT;
107
114 int32_t wrapT = WrapT::REPEAT;
115
122 int64_t getSizeBytes() const {
123 int64_t accum = 0;
124 accum += int64_t(sizeof(Sampler));
126 int64_t(sizeof(CesiumGltf::NamedObject));
127
128 return accum;
129 }
130};
131} // namespace CesiumGltf
Classes for working with glTF models.
The base class for objects in a glTF that have a name.
Definition NamedObject.h:15
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition NamedObject.h:29
Known values for Magnification filter.
Definition Sampler.h:23
Known values for Minification filter.
Definition Sampler.h:34
Known values for S (U) wrapping mode.
Definition Sampler.h:57
Known values for T (V) wrapping mode.
Definition Sampler.h:71
Texture sampler properties for filtering and wrapping modes.
Definition Sampler.h:14
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Sampler.h:122
std::optional< int32_t > magFilter
Magnification filter.
Definition Sampler.h:88
std::optional< int32_t > minFilter
Minification filter.
Definition Sampler.h:96