mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-24 14:45:53 +00:00
Update rdctype::array to have a more stl-like mutable interface
* For the most part the interface is stl-compatible, but we have a few little changes of our own for convenience. * This class is still needed after deleting the C# UI, because we don't want to pass C++ stl structs over module boundaries and possibly run into hard to diagnose incompatibilities.
This commit is contained in:
@@ -78,7 +78,7 @@ void APIInspector::addCallstack(rdctype::array<rdctype::str> calls)
|
||||
ui->callstack->setUpdatesEnabled(false);
|
||||
ui->callstack->clear();
|
||||
|
||||
if(calls.count == 1 && calls[0].count == 0)
|
||||
if(calls.size() == 1 && calls[0].isEmpty())
|
||||
{
|
||||
ui->callstack->addItem(tr("Symbols not loaded. Tools -> Resolve Symbols."));
|
||||
}
|
||||
@@ -99,7 +99,7 @@ void APIInspector::on_apiEvents_itemSelectionChanged()
|
||||
|
||||
APIEvent ev = node->tag().value<APIEvent>();
|
||||
|
||||
if(ev.callstack.count > 0)
|
||||
if(!ev.callstack.isEmpty())
|
||||
{
|
||||
m_Ctx.Replay().AsyncInvoke([this, ev](IReplayController *r) {
|
||||
rdctype::array<rdctype::str> trace = r->GetResolve(ev.callstack);
|
||||
@@ -126,7 +126,7 @@ void APIInspector::fillAPIView()
|
||||
|
||||
const DrawcallDescription *draw = m_Ctx.CurSelectedDrawcall();
|
||||
|
||||
if(draw != NULL && draw->events.count > 0)
|
||||
if(draw != NULL && !draw->events.isEmpty())
|
||||
{
|
||||
for(const APIEvent &ev : draw->events)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user