mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 05:35:48 +00:00
Implement multi-instance mesh picking
This commit is contained in:
committed by
Baldur Karlsson
parent
a41c35b764
commit
87adee1bf1
@@ -739,8 +739,9 @@ void BufferViewer::render_clicked(QMouseEvent *e)
|
||||
if((e->buttons() & Qt::RightButton) && m_Output)
|
||||
{
|
||||
m_Ctx->Renderer()->AsyncInvoke([this, curpos](IReplayRenderer *r) {
|
||||
uint32_t vertSelected =
|
||||
m_Output->PickVertex(m_Ctx->CurEvent(), (uint32_t)curpos.x(), (uint32_t)curpos.y());
|
||||
uint32_t instanceSelected = 0;
|
||||
uint32_t vertSelected = m_Output->PickVertex(m_Ctx->CurEvent(), (uint32_t)curpos.x(),
|
||||
(uint32_t)curpos.y(), &instanceSelected);
|
||||
|
||||
if(vertSelected != ~0U)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user