cesium-native  0.41.0
CesiumGltf::ExtensionBufferViewExtMeshoptCompression Struct Referencefinal

Compressed data for bufferView. More...

#include <CesiumGltf/ExtensionBufferViewExtMeshoptCompression.h>

Inheritance diagram for CesiumGltf::ExtensionBufferViewExtMeshoptCompression:
CesiumUtility::ExtensibleObject

Classes

struct  Filter
 Known values for The compression filter. More...
 
struct  Mode
 Known values for The compression mode. More...
 

Public Attributes

int32_t buffer = -1
 The index of the buffer with compressed data.
 
int64_t byteOffset = 0
 The offset into the buffer in bytes.
 
int64_t byteLength = int64_t()
 The length of the compressed data in bytes.
 
int64_t byteStride = int64_t()
 The stride, in bytes.
 
int64_t count = int64_t()
 The number of elements.
 
std::string mode = Mode::ATTRIBUTES
 The compression mode. More...
 
std::string filter = Filter::NONE
 The compression filter. More...
 
- Public Attributes inherited from CesiumUtility::ExtensibleObject
std::unordered_map< std::string, std::any > extensions
 The extensions attached to this object. More...
 
JsonValue::Object extras
 Application-specific data. More...
 
JsonValue::Object unknownProperties
 Unknown properties that exist on this object but do not have any representation in the statically-typed classes. More...
 

Static Public Attributes

static constexpr const char * TypeName
 
static constexpr const char * ExtensionName = "EXT_meshopt_compression"
 

Additional Inherited Members

- Public Member Functions inherited from CesiumUtility::ExtensibleObject
template<typename T >
bool hasExtension () const noexcept
 Checks if an extension exists given its static type. More...
 
template<typename T >
const T * getExtension () const noexcept
 Gets an extension given its static type. More...
 
template<typename T >
T * getExtension () noexcept
 Gets an extension given its static type. More...
 
const JsonValuegetGenericExtension (const std::string &extensionName) const noexcept
 Gets a generic extension with the given name as a CesiumUtility::JsonValue. More...
 
JsonValuegetGenericExtension (const std::string &extensionName) noexcept
 Gets a generic extension with the given name as a CesiumUtility::JsonValue. More...
 
template<typename T , typename... ConstructorArgumentTypes>
T & addExtension (ConstructorArgumentTypes &&... constructorArguments)
 Adds a statically-typed extension to this object. More...
 
template<typename T >
void removeExtension ()
 Removes a statically-typed extension from this object. More...
 

Detailed Description

Compressed data for bufferView.

Definition at line 16 of file ExtensionBufferViewExtMeshoptCompression.h.

Member Data Documentation

◆ filter

std::string CesiumGltf::ExtensionBufferViewExtMeshoptCompression::filter = Filter::NONE

The compression filter.

Known values are defined in Filter.

Definition at line 85 of file ExtensionBufferViewExtMeshoptCompression.h.

◆ mode

std::string CesiumGltf::ExtensionBufferViewExtMeshoptCompression::mode = Mode::ATTRIBUTES

The compression mode.

Known values are defined in Mode.

Definition at line 77 of file ExtensionBufferViewExtMeshoptCompression.h.

◆ TypeName

constexpr const char* CesiumGltf::ExtensionBufferViewExtMeshoptCompression::TypeName
inlinestaticconstexpr
Initial value:
=
"ExtensionBufferViewExtMeshoptCompression"

Definition at line 18 of file ExtensionBufferViewExtMeshoptCompression.h.


The documentation for this struct was generated from the following file: