@@ -1089,7 +1089,7 @@ namespace nbl
1089
1089
1090
1090
for (uint16_t i = 0 ; i < vertexInfluenceData.perVertexComponentsData .size (); ++i) // ! iterate over single components
1091
1091
{
1092
- VertexInfluenceData::ComponentData& skinComponent = vertexInfluenceData.perVertexComponentsData [i];
1092
+ typename VertexInfluenceData::ComponentData& skinComponent = vertexInfluenceData.perVertexComponentsData [i];
1093
1093
1094
1094
JointComponentT* vJoint = reinterpret_cast <JointComponentT*>(vJointsComponentDataRaw) + i;
1095
1095
WeightCompomentT* vWeight = reinterpret_cast <WeightCompomentT*>(vWeightsComponentDataRaw) + i;
@@ -1099,7 +1099,7 @@ namespace nbl
1099
1099
}
1100
1100
}
1101
1101
1102
- std::vector<VertexInfluenceData::ComponentData> skinComponentUnlimitedStream;
1102
+ std::vector<typename VertexInfluenceData::ComponentData> skinComponentUnlimitedStream;
1103
1103
{
1104
1104
for (const auto & vertexInfluenceData : vertexInfluenceDataContainer)
1105
1105
for (const auto & skinComponent : vertexInfluenceData.perVertexComponentsData )
@@ -1112,13 +1112,13 @@ namespace nbl
1112
1112
}
1113
1113
1114
1114
// ! sort, cache and keep only biggest influencers
1115
- std::sort (std::begin (skinComponentUnlimitedStream), std::end (skinComponentUnlimitedStream), [&](const VertexInfluenceData::ComponentData& lhs, const VertexInfluenceData::ComponentData& rhs) { return lhs.weight < rhs.weight ; });
1115
+ std::sort (std::begin (skinComponentUnlimitedStream), std::end (skinComponentUnlimitedStream), [&](const typename VertexInfluenceData::ComponentData& lhs, const typename VertexInfluenceData::ComponentData& rhs) { return lhs.weight < rhs.weight ; });
1116
1116
{
1117
1117
auto iteratorEnd = skinComponentUnlimitedStream.begin () + (vertexInfluenceDataContainer.size () - 1u ) * 4u ;
1118
1118
if (skinComponentUnlimitedStream.begin () != iteratorEnd)
1119
1119
skinComponentUnlimitedStream.erase (skinComponentUnlimitedStream.begin (), iteratorEnd);
1120
1120
1121
- std::sort (std::begin (skinComponentUnlimitedStream), std::end (skinComponentUnlimitedStream), [&](const VertexInfluenceData::ComponentData& lhs, const VertexInfluenceData::ComponentData& rhs) { return lhs.joint < rhs.joint ; });
1121
+ std::sort (std::begin (skinComponentUnlimitedStream), std::end (skinComponentUnlimitedStream), [&](const typename VertexInfluenceData::ComponentData& lhs, const typename VertexInfluenceData::ComponentData& rhs) { return lhs.joint < rhs.joint ; });
1122
1122
}
1123
1123
1124
1124
auto * vOverrideJointsData = reinterpret_cast <uint8_t *>(vOverrideJointsBuffer->getPointer ()) + commonVJointsOffset;
@@ -1280,8 +1280,8 @@ namespace nbl
1280
1280
for (uint16_t i = 0 ; i < quantRequest.encodeData .size (); ++i) // ! quantization test
1281
1281
{
1282
1282
auto & encode = quantRequest.encodeData [i];
1283
- auto * quantBuffer = std::get<QuantRequest::QUANT_BUFFER>(encode);
1284
- auto * errorBuffer = std::get<QuantRequest::ERROR_BUFFER>(encode);
1283
+ auto * quantBuffer = std::get<typename QuantRequest::QUANT_BUFFER>(encode);
1284
+ auto * errorBuffer = std::get<typename QuantRequest::ERROR_BUFFER>(encode);
1285
1285
const WEIGHT_ENCODING requestWeightEncoding = std::get<WEIGHT_ENCODING>(encode);
1286
1286
const E_FORMAT requestQuantFormat = std::get<E_FORMAT>(encode);
1287
1287
@@ -1293,7 +1293,7 @@ namespace nbl
1293
1293
const auto & weightInput = packedWeightsStream.pointer [i];
1294
1294
if (weightInput)
1295
1295
{
1296
- const QuantRequest::ERROR_TYPE& errorComponent = errorBuffer[i] = core::abs (quantsDecoded.pointer [i] - weightInput);
1296
+ const typename QuantRequest::ERROR_TYPE& errorComponent = errorBuffer[i] = core::abs (quantsDecoded.pointer [i] - weightInput);
1297
1297
1298
1298
if (errorComponent)
1299
1299
{
@@ -1680,7 +1680,7 @@ namespace nbl
1680
1680
1681
1681
if (nodes.error () != simdjson::error_code::NO_SUCH_FIELD)
1682
1682
for (const auto & node : nodes.get_array ())
1683
- glTFScene.nodes .push_back (node.get_uint64 ());
1683
+ glTFScene.nodes .push_back (static_cast < uint32_t >( node.get_uint64 () ));
1684
1684
}
1685
1685
}
1686
1686
0 commit comments