@@ -1419,7 +1419,7 @@ void BufferViewer::OnEventChanged(uint32_t eventId)
1419
1419
m_ModelGSOut->primRestart = 0 ;
1420
1420
1421
1421
if (m_Ctx.CurPipelineState ().IsStripRestartEnabled () && draw &&
1422
- (draw->flags & DrawFlags::UseIBuffer ) && IsStrip (draw->topology ))
1422
+ (draw->flags & DrawFlags::Indexed ) && IsStrip (draw->topology ))
1423
1423
{
1424
1424
m_ModelVSIn->primRestart = m_Ctx.CurPipelineState ().GetStripRestartIndex ();
1425
1425
@@ -1581,7 +1581,7 @@ void BufferViewer::RT_FetchMeshData(IReplayController *r)
1581
1581
rdcarray<BoundVBuffer> vbs = m_Ctx.CurPipelineState ().GetVBuffers ();
1582
1582
1583
1583
bytebuf idata;
1584
- if (ib.resourceId != ResourceId () && draw && (draw->flags & DrawFlags::UseIBuffer ))
1584
+ if (ib.resourceId != ResourceId () && draw && (draw->flags & DrawFlags::Indexed ))
1585
1585
idata = r->GetBufferData (ib.resourceId , ib.byteOffset + draw->indexOffset * draw->indexByteWidth ,
1586
1586
draw->numIndices * draw->indexByteWidth );
1587
1587
@@ -1595,7 +1595,7 @@ void BufferViewer::RT_FetchMeshData(IReplayController *r)
1595
1595
m_ModelVSIn->indices ->data = (byte *)indices;
1596
1596
m_ModelVSIn->indices ->end = (byte *)(indices + draw->numIndices );
1597
1597
}
1598
- else if (draw && (draw->flags & DrawFlags::UseIBuffer ))
1598
+ else if (draw && (draw->flags & DrawFlags::Indexed ))
1599
1599
{
1600
1600
indices = new uint32_t [1 ];
1601
1601
m_ModelVSIn->indices ->data = (byte *)indices;
@@ -1723,7 +1723,7 @@ void BufferViewer::RT_FetchMeshData(IReplayController *r)
1723
1723
m_ModelVSOut->baseVertex = m_PostVS.baseVertex ;
1724
1724
m_ModelVSOut->displayBaseVertex = m_ModelVSIn->baseVertex ;
1725
1725
1726
- if (draw && m_PostVS.indexResourceId != ResourceId () && (draw->flags & DrawFlags::UseIBuffer ))
1726
+ if (draw && m_PostVS.indexResourceId != ResourceId () && (draw->flags & DrawFlags::Indexed ))
1727
1727
idata = r->GetBufferData (m_PostVS.indexResourceId , m_PostVS.indexByteOffset ,
1728
1728
draw->numIndices * m_PostVS.indexByteStride );
1729
1729
@@ -2152,7 +2152,7 @@ void BufferViewer::updatePreviewColumns()
2152
2152
m_VSInPosition.indexResourceId = ib.resourceId ;
2153
2153
m_VSInPosition.indexByteOffset = ib.byteOffset + draw->indexOffset * draw->indexByteWidth ;
2154
2154
2155
- if ((draw->flags & DrawFlags::UseIBuffer ) && m_VSInPosition.indexByteStride == 0 )
2155
+ if ((draw->flags & DrawFlags::Indexed ) && m_VSInPosition.indexByteStride == 0 )
2156
2156
m_VSInPosition.indexByteStride = 4U ;
2157
2157
2158
2158
{
@@ -2252,7 +2252,7 @@ void BufferViewer::updatePreviewColumns()
2252
2252
2253
2253
m_PostGSPosition.indexByteStride = 0 ;
2254
2254
2255
- if (!(draw->flags & DrawFlags::UseIBuffer ))
2255
+ if (!(draw->flags & DrawFlags::Indexed ))
2256
2256
m_PostVSPosition.indexByteStride = m_VSInPosition.indexByteStride = 0 ;
2257
2257
2258
2258
m_PostGSPosition.unproject = true ;
@@ -2319,7 +2319,7 @@ void BufferViewer::configureMeshColumns()
2319
2319
// 0xdeadbeef) and we want to clamp.
2320
2320
uint32_t numRowsUpperBound = 0 ;
2321
2321
2322
- if (draw->flags & DrawFlags::UseIBuffer )
2322
+ if (draw->flags & DrawFlags::Indexed )
2323
2323
{
2324
2324
// In an indexed draw we clamp to however many indices are available in the index buffer
2325
2325
0 commit comments