File tree Expand file tree Collapse file tree 2 files changed +186
-221
lines changed Expand file tree Collapse file tree 2 files changed +186
-221
lines changed Original file line number Diff line number Diff line change @@ -142,20 +142,20 @@ uint32_t CCPUMeshPackerV2<MDIStructType>::commit(IMeshPackerBase::PackedMeshBuff
142
142
deinterleaveAndCopyPerInstanceAttribute (*it, location, dstAttrPtr);
143
143
}
144
144
145
- auto vtxFormatInfo = m_virtualAttribConfig.map . find (attribFormat);
146
-
147
- if (vtxFormatInfo == m_virtualAttribConfig. map .end ())
145
+ auto & utb = m_virtualAttribConfig.utbs [ VirtualAttribConfig::getUTBArrayTypeFromFormat (attribFormat)] ;
146
+ auto vtxFormatInfo = utb. find (attribFormat);
147
+ if (vtxFormatInfo==utb .end ())
148
148
return 0u ;
149
149
150
- uint16_t vaArrayElement = vtxFormatInfo->second . second ;
150
+ uint16_t vaArrayElement = vtxFormatInfo->second ;
151
151
uint32_t vaOffset;
152
152
153
153
if (inputRate == EVIR_PER_VERTEX)
154
154
vaOffset = ramb.attribAllocParams [location].offset / attribSize + verticesAddedCnt;
155
155
if (inputRate == EVIR_PER_INSTANCE)
156
156
vaOffset = ramb.attribAllocParams [location].offset / attribSize + instancesAddedCnt;
157
157
158
- cdotOut->attribInfo [location] = VirtualAttribute (vaArrayElement, vaOffset);
158
+ cdotOut->attribInfo [location] = VirtualAttribute (vaArrayElement,vaOffset);
159
159
160
160
}
161
161
You can’t perform that action at this time.
0 commit comments