Lagrange
Loading...
Searching...
No Matches
AttributeInfo Struct Reference

Metadata and raw byte views for a single serialized attribute. More...

#include <lagrange/internal/SurfaceMeshInfo.h>

Public Attributes

std::string_view name
 
AttributeId attribute_id = 0
 
std::underlying_type_t< AttributeValueTypevalue_type = 0
 
std::underlying_type_t< AttributeElementelement_type = 0
 
std::underlying_type_t< AttributeUsageusage = 0
 
size_t num_channels = 0
 
size_t num_elements = 0
 
bool is_indexed = false
 
span< const uint8_t > data_bytes
 Non-indexed attribute: raw data bytes (num_elements * num_channels * sizeof(ValueType)).
 
span< const uint8_t > values_bytes
 Indexed attribute: values and indices stored separately.
 
size_t values_num_elements = 0
 
size_t values_num_channels = 0
 
span< const uint8_t > indices_bytes
 
size_t indices_num_elements = 0
 
uint8_t index_type_size = 0
 

Detailed Description

Metadata and raw byte views for a single serialized attribute.

Byte views are non-owning — the underlying data must outlive this struct.


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