cesium-native 0.43.0
Loading...
Searching...
No Matches
FeatureIdTexture.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/TextureInfo.h>
7
8#include <cstdint>
9#include <vector>
10
11namespace CesiumGltf {
15struct CESIUMGLTF_API FeatureIdTexture final : public TextureInfo {
19 static constexpr const char* TypeName = "FeatureIdTexture";
20
27 std::vector<int64_t> channels = {0};
28
35 int64_t getSizeBytes() const {
36 int64_t accum = 0;
37 accum += int64_t(sizeof(FeatureIdTexture));
38 accum += TextureInfo::getSizeBytes() - int64_t(sizeof(TextureInfo));
39 accum += int64_t(sizeof(int64_t) * this->channels.capacity());
40 return accum;
41 }
42};
43} // namespace CesiumGltf
Classes for working with glTF models.
A texture containing feature IDs.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Reference to a texture.
Definition TextureInfo.h:14