5#include <CesiumGltf/Library.h>
6#include <CesiumGltf/NamedObject.h>
18 static constexpr const char* TypeName =
"Sampler";
25 static constexpr int32_t NEAREST = 9728;
28 static constexpr int32_t LINEAR = 9729;
36 static constexpr int32_t NEAREST = 9728;
39 static constexpr int32_t LINEAR = 9729;
42 static constexpr int32_t NEAREST_MIPMAP_NEAREST = 9984;
45 static constexpr int32_t LINEAR_MIPMAP_NEAREST = 9985;
48 static constexpr int32_t NEAREST_MIPMAP_LINEAR = 9986;
51 static constexpr int32_t LINEAR_MIPMAP_LINEAR = 9987;
59 static constexpr int32_t CLAMP_TO_EDGE = 33071;
62 static constexpr int32_t MIRRORED_REPEAT = 33648;
65 static constexpr int32_t REPEAT = 10497;
73 static constexpr int32_t CLAMP_TO_EDGE = 33071;
76 static constexpr int32_t MIRRORED_REPEAT = 33648;
79 static constexpr int32_t REPEAT = 10497;
106 int32_t wrapS = WrapS::REPEAT;
114 int32_t wrapT = WrapT::REPEAT;
124 accum += int64_t(
sizeof(
Sampler));
Classes for working with glTF models.
The base class for objects in a glTF that have a name.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Known values for Magnification filter.
Known values for Minification filter.
Known values for S (U) wrapping mode.
Known values for T (V) wrapping mode.
Texture sampler properties for filtering and wrapping modes.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::optional< int32_t > magFilter
Magnification filter.
std::optional< int32_t > minFilter
Minification filter.