mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
Remove rdctype namespace. Rename rdctype::str -> rdcstr, rdcarray, etc
* Since these types are more prevalent than originally designed, it makes more sense to remove the namespace for ease of typing/naming. * Also add a specialised type 'bytebuf' for an array of bytes. * This makes mapping easier to SWIG since there's no special casing for namespaced arrays. Especially so for nested cases like rdctype::array<rdctype::str> -> rdcarray<rdcstr>
This commit is contained in:
@@ -188,7 +188,7 @@ void PerformanceCounterViewer::CaptureCounters()
|
||||
|
||||
bool done = false;
|
||||
m_Ctx.Replay().AsyncInvoke([this, &done](IReplayController *controller) -> void {
|
||||
rdctype::array<GPUCounter> counters;
|
||||
rdcarray<GPUCounter> counters;
|
||||
counters.resize(m_SelectedCounters.size());
|
||||
|
||||
QMap<GPUCounter, CounterDescription> counterDescriptions;
|
||||
@@ -205,7 +205,7 @@ void PerformanceCounterViewer::CaptureCounters()
|
||||
counterIndex.insert((GPUCounter)m_SelectedCounters[i], i);
|
||||
}
|
||||
|
||||
const rdctype::array<CounterResult> results = controller->FetchCounters(counters);
|
||||
const rdcarray<CounterResult> results = controller->FetchCounters(counters);
|
||||
|
||||
GUIInvoke::call([this, results, counterDescriptions, counterIndex]() -> void {
|
||||
ui->counterResults->clear();
|
||||
|
||||
Reference in New Issue
Block a user