mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Initialise variables that might not be set otherwise before first use
This commit is contained in:
@@ -57,7 +57,7 @@ private:
|
||||
Ui::APIInspector *ui;
|
||||
ICaptureContext &m_Ctx;
|
||||
|
||||
uint32_t m_EventID;
|
||||
uint32_t m_EventID = 0;
|
||||
|
||||
void addCallstack(rdcarray<rdcstr> calls);
|
||||
void fillAPIView();
|
||||
|
||||
@@ -294,9 +294,9 @@ private:
|
||||
|
||||
QSizeF m_PrevSize;
|
||||
|
||||
PixelValue m_CurRealValue;
|
||||
PixelValue m_CurPixelValue;
|
||||
PixelValue m_CurHoverValue;
|
||||
PixelValue m_CurRealValue = {};
|
||||
PixelValue m_CurPixelValue = {};
|
||||
PixelValue m_CurHoverValue = {};
|
||||
|
||||
QColor backCol;
|
||||
|
||||
|
||||
@@ -321,13 +321,13 @@ in-place, so it would be slice 0: sample 0, slice 0: sample 1, slice 1: sample 0
|
||||
This then follows the mapping for array slices as with any other array texture. :data:`sampleIndex`
|
||||
is ignored.
|
||||
)");
|
||||
bool mapToArray;
|
||||
bool mapToArray = false;
|
||||
|
||||
DOCUMENT(R"(
|
||||
If :data:`mapToArray` is ``False`` this selects which sample should be extracted to treat as a
|
||||
normal 2D image. If set to :data:`ResolveSamples` then instead there's a default average resolve.
|
||||
)");
|
||||
uint32_t sampleIndex;
|
||||
uint32_t sampleIndex = ~0U;
|
||||
|
||||
static const uint32_t ResolveSamples = ~0U;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user