Cesium for Unreal 2.22.1
Loading...
Searching...
No Matches
FCesiumMetadataEncodingDetails Struct Reference

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

#include <CesiumMetadataEncodingDetails.h>

Public Member Functions

 FCesiumMetadataEncodingDetails ()
 
 FCesiumMetadataEncodingDetails (ECesiumEncodedMetadataType InType, ECesiumEncodedMetadataComponentType InComponentType, ECesiumEncodedMetadataConversion InConversion)
 
bool operator== (const FCesiumMetadataEncodingDetails &Info) const
 
bool operator!= (const FCesiumMetadataEncodingDetails &Info) const
 
bool HasValidType () const
 

Static Public Member Functions

static FCesiumMetadataEncodingDetails GetBestFitForProperty (const FCesiumMetadataPropertyDetails &PropertyDetails)
 Gets the best-fitting encoded types and conversion method for a given metadata type.
 

Public Attributes

ECesiumEncodedMetadataType Type
 The GPU-compatible type that this property's values will be encoded as.
 
ECesiumEncodedMetadataComponentType ComponentType
 The GPU-compatible component type that this property's values will be encoded as.
 
ECesiumEncodedMetadataConversion Conversion
 The method of conversion used for this property.
 

Detailed Description

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

Definition at line 84 of file CesiumMetadataEncodingDetails.h.

Constructor & Destructor Documentation

◆ FCesiumMetadataEncodingDetails() [1/2]

FCesiumMetadataEncodingDetails::FCesiumMetadataEncodingDetails ( )

◆ FCesiumMetadataEncodingDetails() [2/2]

FCesiumMetadataEncodingDetails::FCesiumMetadataEncodingDetails ( ECesiumEncodedMetadataType InType,
ECesiumEncodedMetadataComponentType InComponentType,
ECesiumEncodedMetadataConversion InConversion )

Member Function Documentation

◆ GetBestFitForProperty()

static FCesiumMetadataEncodingDetails FCesiumMetadataEncodingDetails::GetBestFitForProperty ( const FCesiumMetadataPropertyDetails & PropertyDetails)
static

Gets the best-fitting encoded types and conversion method for a given metadata type.

This determines the best way (if one is possible) to transfer values of the given type to the GPU, for access in Unreal materials.

An array size can also be supplied if bIsArray is true on the given value type. If bIsArray is true, but the given array size is zero, this indicates the arrays of the property vary in length. Variable-length array properties are unsupported.

Parameters
PropertyDetailsThe metadata property details

◆ HasValidType()

bool FCesiumMetadataEncodingDetails::HasValidType ( ) const

◆ operator!=()

bool FCesiumMetadataEncodingDetails::operator!= ( const FCesiumMetadataEncodingDetails & Info) const

◆ operator==()

bool FCesiumMetadataEncodingDetails::operator== ( const FCesiumMetadataEncodingDetails & Info) const

Member Data Documentation

◆ ComponentType

ECesiumEncodedMetadataComponentType FCesiumMetadataEncodingDetails::ComponentType

The GPU-compatible component type that this property's values will be encoded as.

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

Definition at line 106 of file CesiumMetadataEncodingDetails.h.

◆ Conversion

ECesiumEncodedMetadataConversion FCesiumMetadataEncodingDetails::Conversion

The method of conversion used for this property.

This describes how the values will be converted for access in Unreal materials. Note that not all property types are compatible with the methods of conversion.

Definition at line 114 of file CesiumMetadataEncodingDetails.h.

◆ Type

ECesiumEncodedMetadataType FCesiumMetadataEncodingDetails::Type

The GPU-compatible type that this property's values will be encoded as.

Definition at line 98 of file CesiumMetadataEncodingDetails.h.


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