Cesium for Unreal 2.12.0
Loading...
Searching...
No Matches
CesiumMetadataEncodingDetails.h File Reference
#include "CesiumMetadataValueType.h"
#include <cstdlib>
#include <type_traits>
#include "CesiumMetadataEncodingDetails.generated.h"

Go to the source code of this file.

Classes

struct  FCesiumMetadataEncodingDetails
 Describes how a property from EXT_structural_metadata will be encoded for access in Unreal materials. More...
 

Enumerations

enum class  ECesiumEncodedMetadataComponentType : uint8 { None , Uint8 , Float }
 The component type that a metadata property's values will be encoded as. More...
 
enum class  ECesiumEncodedMetadataType : uint8 {
  None , Scalar , Vec2 , Vec3 ,
  Vec4
}
 The type that a metadata property's values will be encoded as. More...
 
enum class  ECesiumEncodedMetadataConversion : uint8 { None , Coerce , ParseColorFromString }
 Indicates how a property value from EXT_structural_metadata should be converted to a GPU-accessible type, if possible. More...
 

Enumeration Type Documentation

◆ ECesiumEncodedMetadataComponentType

enum class ECesiumEncodedMetadataComponentType : uint8
strong

The component type that a metadata property's values will be encoded as.

These correspond to the pixel component types that are supported in Unreal textures.

Enumerator
None 
Uint8 
Float 

Definition at line 17 of file CesiumMetadataEncodingDetails.h.

◆ ECesiumEncodedMetadataConversion

enum class ECesiumEncodedMetadataConversion : uint8
strong

Indicates how a property value from EXT_structural_metadata should be converted to a GPU-accessible type, if possible.

Enumerator
None 

Do nothing.

This is typically used for property types that are completely unable to be coerced.

Coerce 

Coerce the components of a property value to the specified component type.

If the property contains string values, this attempts to parse numbers from the strings as uint8s.

ParseColorFromString 

Attempt to parse a color from a string property value.

This supports the following formats:

  • rgb(R, G, B), where R, G, and B are values in the range [0, 255]
  • hexcode colors, e.g. #ff0000

Definition at line 36 of file CesiumMetadataEncodingDetails.h.

◆ ECesiumEncodedMetadataType

enum class ECesiumEncodedMetadataType : uint8
strong

The type that a metadata property's values will be encoded as.

Enumerator
None 
Scalar 
Vec2 
Vec3 
Vec4 

Definition at line 23 of file CesiumMetadataEncodingDetails.h.