|
|
@@ -72,7 +72,6 @@ void RenderableDrawer::setState(const RenderableDrawerArguments& args, CommandBu
|
|
|
cmdb.bindSampler(U32(MaterialSet::kGlobal), U32(MaterialBinding::kNearestClampSampler), getRenderer().getSamplers().m_nearestNearestClamp.get());
|
|
|
|
|
|
// Misc
|
|
|
- cmdb.setVertexAttribute(0, 0, Format::kR32G32B32A32_Uint, 0);
|
|
|
cmdb.bindIndexBuffer(&UnifiedGeometryBuffer::getSingleton().getBuffer(), 0, IndexType::kU16);
|
|
|
}
|
|
|
|
|
|
@@ -245,6 +244,7 @@ void RenderableDrawer::drawMdi(const RenderableDrawerArguments& args, CommandBuf
|
|
|
|
|
|
if(it->m_drawType == 0)
|
|
|
{
|
|
|
+ cmdb.setVertexAttribute(0, 0, Format::kR32G32B32A32_Uint, 0);
|
|
|
cmdb.bindVertexBuffer(0, it->m_legacyDraw.m_instancesBuffer, it->m_legacyDraw.m_instancesBufferOffset, sizeof(GpuSceneRenderableInstance),
|
|
|
VertexStepRate::kInstance);
|
|
|
|
|
|
@@ -255,6 +255,7 @@ void RenderableDrawer::drawMdi(const RenderableDrawerArguments& args, CommandBuf
|
|
|
}
|
|
|
else if(it->m_drawType == 1)
|
|
|
{
|
|
|
+ cmdb.setVertexAttribute(0, 0, Format::kR32G32B32A32_Uint, 0);
|
|
|
cmdb.bindVertexBuffer(0, it->m_legacyDraw.m_instancesBuffer, it->m_legacyDraw.m_instancesBufferOffset, sizeof(GpuSceneRenderableInstance),
|
|
|
VertexStepRate::kInstance);
|
|
|
|
|
|
@@ -275,6 +276,7 @@ void RenderableDrawer::drawMdi(const RenderableDrawerArguments& args, CommandBuf
|
|
|
{
|
|
|
ANKI_ASSERT(it->m_drawType == 3);
|
|
|
|
|
|
+ cmdb.setVertexAttribute(0, 0, Format::kR32_Uint, 0);
|
|
|
cmdb.bindVertexBuffer(0, it->m_swMeshDraw.m_instancesBuffer, it->m_swMeshDraw.m_instancesBufferOffset, sizeof(GpuSceneMeshletInstance),
|
|
|
VertexStepRate::kInstance);
|
|
|
|