cesium-native 0.43.0
Loading...
Searching...
No Matches
ExtensionBufferViewExtMeshoptCompression.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 <CesiumUtility/ExtensibleObject.h>
7
8#include <cstdint>
9#include <string>
10
11namespace CesiumGltf {
20 static constexpr const char* TypeName =
21 "ExtensionBufferViewExtMeshoptCompression";
24 static constexpr const char* ExtensionName = "EXT_meshopt_compression";
25
29 struct Mode {
31 inline static const std::string ATTRIBUTES = "ATTRIBUTES";
32
34 inline static const std::string TRIANGLES = "TRIANGLES";
35
37 inline static const std::string INDICES = "INDICES";
38 };
39
43 struct Filter {
45 inline static const std::string NONE = "NONE";
46
48 inline static const std::string OCTAHEDRAL = "OCTAHEDRAL";
49
51 inline static const std::string QUATERNION = "QUATERNION";
52
54 inline static const std::string EXPONENTIAL = "EXPONENTIAL";
55 };
56
60 int32_t buffer = -1;
61
65 int64_t byteOffset = 0;
66
70 int64_t byteLength = int64_t();
71
75 int64_t byteStride = int64_t();
76
80 int64_t count = int64_t();
81
88 std::string mode = Mode::ATTRIBUTES;
89
96 std::string filter = Filter::NONE;
97
104 int64_t getSizeBytes() const {
105 int64_t accum = 0;
106 accum += int64_t(sizeof(ExtensionBufferViewExtMeshoptCompression));
108 int64_t(sizeof(CesiumUtility::ExtensibleObject));
109
110 return accum;
111 }
112};
113} // namespace CesiumGltf
Classes for working with glTF models.
@ NONE
The data is uncompressed.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
The base class for objects that have extensions and extras.
int64_t getSizeBytes() const
Calculates the size in bytes of this ExtensibleObject, including all of its extras but NOT including ...