mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 15:06:32 +00:00
Sort position element on output to the start before calculating offsets
This commit is contained in:
@@ -1391,12 +1391,20 @@ void BufferViewer::ConfigureMeshColumns()
|
||||
i++;
|
||||
}
|
||||
|
||||
// shift position attribute up to first, keeping order otherwise
|
||||
// the same
|
||||
if(posidx > 0)
|
||||
{
|
||||
FormatElement pos = m_ModelVSOut->columns[posidx];
|
||||
m_ModelVSOut->columns.insert(0, m_ModelVSOut->columns.takeAt(posidx));
|
||||
}
|
||||
|
||||
i = 0;
|
||||
uint32_t offset = 0;
|
||||
for(const SigParameter &sig : vs->OutputSig)
|
||||
for(const FormatElement &sig : m_ModelVSOut->columns)
|
||||
{
|
||||
uint numComps = sig.compCount;
|
||||
uint elemSize = sig.compType == eCompType_Double ? 8U : 4U;
|
||||
uint numComps = sig.format.compCount;
|
||||
uint elemSize = sig.format.compType == eCompType_Double ? 8U : 4U;
|
||||
|
||||
if(m_Ctx.CurPipelineState.HasAlignedPostVSData())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user