cesium-native 0.56.0
Loading...
Searching...
No Matches
ExtensionKhrGaussianSplatting.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 <string>
9
10namespace CesiumGltf {
14struct CESIUMGLTF_API ExtensionKhrGaussianSplatting final
19 static constexpr const char* TypeName = "ExtensionKhrGaussianSplatting";
22 static constexpr const char* ExtensionName = "KHR_gaussian_splatting";
23
29 struct Projection {
31 inline static const std::string perspective = "perspective";
32
34 inline static const std::string orthographic = "orthographic";
35 };
36
43 inline static const std::string cameraDistance = "cameraDistance";
44
46 inline static const std::string zDepth = "zDepth";
47 };
48
53 struct ColorSpace {
55 inline static const std::string BT_709 = "BT.709";
56
58 inline static const std::string BT_2020_ITU = "BT.2020-ITU";
59
61 inline static const std::string BT_2020_HLG = "BT.2020-HLG";
62
64 inline static const std::string BT_2020_PQ = "BT.2020-PQ";
65
67 inline static const std::string Display_P3 = "Display-P3";
68
70 inline static const std::string linear = "linear";
71 };
72
77 std::string kernel = "ellipse";
78
87
96
105
112 int64_t getSizeBytes() const {
113 int64_t accum = 0;
114 accum += int64_t(sizeof(ExtensionKhrGaussianSplatting));
116 int64_t(sizeof(CesiumUtility::ExtensibleObject));
117 accum += int64_t(this->kernel.capacity() * sizeof(char));
118 return accum;
119 }
120};
121} // namespace CesiumGltf
Classes for working with glTF models.
Known values for Optional property specifying the color space of the spherical harmonics....
Known values for Optional property specifying how to project the Gaussians to achieve a perspective c...
Known values for Optional property specifying how to sort the Gaussians during rendering....
Data defining a 3D Gaussian Splat primitive.
std::string projection
Optional property specifying how to project the Gaussians to achieve a perspective correct value....
std::string sortingMethod
Optional property specifying how to sort the Gaussians during rendering. This property defaults to ca...
std::string colorSpace
Optional property specifying the color space of the spherical harmonics. This property defaults to BT...
static constexpr const char * TypeName
The original name of this type.
static constexpr const char * ExtensionName
The official name of the extension. This should be the same as its key in the extensions object.
std::string kernel
Optional property specifying parameters regarding the kernel used to generate the Gaussians....
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 ...