Diligent Engine
Loading...
Searching...
No Matches
Diligent::RadientAnimationValueDesc Struct Reference

#include <RadientAnimation.h>

Public Attributes

RADIENT_ANIMATION_VALUE_TYPE Type = RADIENT_ANIMATION_VALUE_TYPE_UNKNOWN
Uint32 ArraySize = 1

Detailed Description

Type and fixed array length of a sampled animation value.

ArraySize is the number of native values, not the number of scalar components. For example, one RadientFloat3 has Type FLOAT3 and ArraySize 1; ten morph weights have Type FLOAT and ArraySize 10. Semantic meaning is defined by the target schema and property: for example, a rotation sampler uses FLOAT4 storage, while its property defines quaternion interpolation.

Member Data Documentation

◆ ArraySize

Uint32 Diligent::RadientAnimationValueDesc::ArraySize = 1

Number of complete Type values produced at each keyframe. This is not the number of scalar components: FLOAT3 with ArraySize 1 is one vector, while FLOAT with ArraySize 10 is an array of ten scalars. Must be nonzero in a clip sampler.

◆ Type

RADIENT_ANIMATION_VALUE_TYPE Diligent::RadientAnimationValueDesc::Type = RADIENT_ANIMATION_VALUE_TYPE_UNKNOWN

Native storage type of each element in the sampled array. The target schema gives this storage its semantic meaning; for example, FLOAT4 may represent a quaternion, color, or ordinary four-component vector. UNKNOWN and COUNT are invalid for a clip sampler.