cesium-native 0.48.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
107
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:14
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition NamedObject.h:28
Known values for Magnification filter.
Definition Sampler.h:23
static constexpr int32_t LINEAR
LINEAR (9729)
Definition Sampler.h:28
static constexpr int32_t NEAREST
NEAREST (9728)
Definition Sampler.h:25
Known values for Minification filter.
Definition Sampler.h:34
static constexpr int32_t NEAREST_MIPMAP_NEAREST
NEAREST_MIPMAP_NEAREST (9984)
Definition Sampler.h:42
static constexpr int32_t LINEAR_MIPMAP_NEAREST
LINEAR_MIPMAP_NEAREST (9985)
Definition Sampler.h:45
static constexpr int32_t NEAREST
NEAREST (9728)
Definition Sampler.h:36
static constexpr int32_t NEAREST_MIPMAP_LINEAR
NEAREST_MIPMAP_LINEAR (9986)
Definition Sampler.h:48
static constexpr int32_t LINEAR_MIPMAP_LINEAR
LINEAR_MIPMAP_LINEAR (9987)
Definition Sampler.h:51
static constexpr int32_t LINEAR
LINEAR (9729)
Definition Sampler.h:39
Known values for S (U) wrapping mode.
Definition Sampler.h:57
static constexpr int32_t MIRRORED_REPEAT
MIRRORED_REPEAT (33648)
Definition Sampler.h:62
static constexpr int32_t REPEAT
REPEAT (10497)
Definition Sampler.h:65
static constexpr int32_t CLAMP_TO_EDGE
CLAMP_TO_EDGE (33071)
Definition Sampler.h:59
Known values for T (V) wrapping mode.
Definition Sampler.h:71
static constexpr int32_t MIRRORED_REPEAT
MIRRORED_REPEAT (33648)
Definition Sampler.h:76
static constexpr int32_t CLAMP_TO_EDGE
CLAMP_TO_EDGE (33071)
Definition Sampler.h:73
static constexpr int32_t REPEAT
REPEAT (10497)
Definition Sampler.h:79
Texture sampler properties for filtering and wrapping modes.
Definition Sampler.h:14
int32_t wrapS
S (U) wrapping mode.
Definition Sampler.h:106
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
int32_t wrapT
T (V) wrapping mode.
Definition Sampler.h:114
static constexpr const char * TypeName
The original name of this type.
Definition Sampler.h:18
std::optional< int32_t > minFilter
Minification filter.
Definition Sampler.h:96