SpiecsEngine
Loading...
Searching...
No Matches
◆
SplitGltfAttribute()
void Spices::GltfHelper::SplitGltfAttribute
(
std::string
attribute
,
std::string *
semanticName
,
uint32_t *
semanticIndex
)
static
Split digital number in attribute.
Parameters
[in]
attribute
.
[out]
semanticName
out attribute.
[out]
semanticIndex
split location.
Definition at line
141
of file
GltfHelper.cpp
.
142
{
143
SPICES_PROFILE_ZONE
;
144
145
*semanticIndex = 0;
146
147
if
(isdigit(attribute.back()))
148
{
149
*semanticIndex = attribute.back() -
'0'
;
150
151
attribute.pop_back();
152
if
(attribute.back() ==
'_'
)
153
{
154
attribute.pop_back();
155
}
156
}
157
158
*semanticName = attribute;
159
}
SPICES_PROFILE_ZONE
#define SPICES_PROFILE_ZONE
Definition
TracyProfilerWrapper.h:100
Spices
GltfHelper
Generated on Sun Mar 8 2026 10:24:48 for SpiecsEngine by
1.10.0