Tweak a few things in the pipeline state & config interfaces

* Remove reference out parameters that aren't a good fit for python
  bindings, and change a few names to make a better interface.
This commit is contained in:
baldurk
2017-04-18 14:57:48 +01:00
parent ceb73b85d9
commit a2a96a556c
7 changed files with 54 additions and 59 deletions
+5 -7
View File
@@ -61,8 +61,6 @@ DECLARE_REFLECTION_STRUCT(SPIRVDisassembler);
\
CONFIG_SETTING(public, QVariantList, QList<QString>, RecentCaptureSettings) \
\
CONFIG_SETTING_VAL(public, int, int, CallstackLevelSkip, 0) \
\
CONFIG_SETTING_VAL(public, QString, QString, TemporaryCaptureDirectory, "") \
\
CONFIG_SETTING_VAL(public, QString, QString, DefaultCaptureSaveDirectory, "") \
@@ -132,15 +130,15 @@ enum class TimeUnit : int
Count,
};
inline QString UnitPrefix(TimeUnit t)
inline QString UnitSuffix(TimeUnit unit)
{
if(t == TimeUnit::Seconds)
if(unit == TimeUnit::Seconds)
return "s";
else if(t == TimeUnit::Milliseconds)
else if(unit == TimeUnit::Milliseconds)
return "ms";
else if(t == TimeUnit::Microseconds)
else if(unit == TimeUnit::Microseconds)
return "µs";
else if(t == TimeUnit::Nanoseconds)
else if(unit == TimeUnit::Nanoseconds)
return "ns";
return "s";