Attribute Class
(Q3DSGeometry::Attribute)Public Types
enum | ComponentType { DefaultType, U8Type, I8Type, U16Type, ..., F64Type } |
enum | Semantic { UnknownSemantic, IndexSemantic, PositionSemantic, NormalSemantic, ..., BinormalSemantic } |
Member Type Documentation
enum Attribute::ComponentType
This enumeration specifies the possible attribute component types for the geometry. The attribute component type indicates how the attribute component data should be interpreted.
Constant | Value | Description |
---|---|---|
Q3DSGeometry::Attribute::DefaultType | 0 | Use the default type for the attribute. |
Q3DSGeometry::Attribute::U8Type | 1 | Component data is unsigned 8 bit integer. |
Q3DSGeometry::Attribute::I8Type | 2 | Component data is signed 8 bit integer. |
Q3DSGeometry::Attribute::U16Type | 3 | Component data is unsigned 16 bit integer. |
Q3DSGeometry::Attribute::I16Type | 4 | Component data is signed 16 bit integer. |
Q3DSGeometry::Attribute::U32Type | 5 | Component data is unsigned 32 bit integer. Default component type for attributes with IndexSemantic. |
Q3DSGeometry::Attribute::I32Type | 6 | Component data is signed 32 bit integer. |
Q3DSGeometry::Attribute::U64Type | 7 | Component data is unsigned 64 bit integer. |
Q3DSGeometry::Attribute::I64Type | 8 | Component data is signed 64 bit integer. |
Q3DSGeometry::Attribute::F16Type | 9 | Component data is 16 bit float. |
Q3DSGeometry::Attribute::F32Type | 10 | Component data is 32 bit float. Default component type for attributes with a semantic other than IndexSemantic. |
Q3DSGeometry::Attribute::F64Type | 11 | Component data is 64 bit float. |
enum Attribute::Semantic
This enumeration specifies the possible attribute semantics for the geometry. The attribute semantic indicates the purpose of the attribute.
Constant | Value | Description |
---|---|---|
Q3DSGeometry::Attribute::UnknownSemantic | 0 | Attribute semantic is unknown. |
Q3DSGeometry::Attribute::IndexSemantic | 1 | Attribute specifies index buffer data type. |
Q3DSGeometry::Attribute::PositionSemantic | 2 | Attribute specifies vertex position attribute (attr_pos in shaders). Attribute has three components. |
Q3DSGeometry::Attribute::NormalSemantic | 3 | Attribute specifies vertex normal attribute (attr_norm in shaders). Attribute has three components. |
Q3DSGeometry::Attribute::TexCoordSemantic | 4 | Attribute specifies vertex texture coordinate attribute (attr_uv0 in shaders). Attribute has two components. |
Q3DSGeometry::Attribute::TangentSemantic | 5 | Attribute specifies vertex tangent attribute (attr_textan in shaders). Attribute has three components. |
Q3DSGeometry::Attribute::BinormalSemantic | 6 | Attribute specifies vertex binormal attribute (attr_binormal in shaders). Attribute has three components. |