mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
[Coverity] Fix uninitialised variable warnings
This commit is contained in:
@@ -1388,16 +1388,16 @@ DOCUMENT("Contains the bytes and metadata describing a thumbnail.");
|
||||
struct Thumbnail
|
||||
{
|
||||
DOCUMENT("The :class:`FileType` of the data in the thumbnail.");
|
||||
FileType type;
|
||||
FileType type = FileType::Raw;
|
||||
|
||||
DOCUMENT("The ``bytes`` byte array containing the raw data.");
|
||||
bytebuf data;
|
||||
|
||||
DOCUMENT("The width of the thumbnail image.");
|
||||
uint32_t width;
|
||||
uint32_t width = 0;
|
||||
|
||||
DOCUMENT("The height of the thumbnail image.");
|
||||
uint32_t height;
|
||||
uint32_t height = 0;
|
||||
};
|
||||
|
||||
DECLARE_REFLECTION_STRUCT(Thumbnail);
|
||||
|
||||
@@ -122,7 +122,7 @@ struct ShaderVariable
|
||||
{
|
||||
name = "";
|
||||
rows = columns = 0;
|
||||
displayAsHex = isStruct = false;
|
||||
displayAsHex = isStruct = rowMajor = false;
|
||||
type = VarType::Float;
|
||||
for(int i = 0; i < 16; i++)
|
||||
value.uv[i] = 0;
|
||||
@@ -132,7 +132,7 @@ struct ShaderVariable
|
||||
name = n;
|
||||
rows = 1;
|
||||
columns = 4;
|
||||
displayAsHex = isStruct = false;
|
||||
displayAsHex = isStruct = rowMajor = false;
|
||||
for(int i = 0; i < 16; i++)
|
||||
value.uv[i] = 0;
|
||||
type = VarType::Float;
|
||||
@@ -146,7 +146,7 @@ struct ShaderVariable
|
||||
name = n;
|
||||
rows = 1;
|
||||
columns = 4;
|
||||
displayAsHex = isStruct = false;
|
||||
displayAsHex = isStruct = rowMajor = false;
|
||||
for(int i = 0; i < 16; i++)
|
||||
value.uv[i] = 0;
|
||||
type = VarType::Int;
|
||||
@@ -160,7 +160,7 @@ struct ShaderVariable
|
||||
name = n;
|
||||
rows = 1;
|
||||
columns = 4;
|
||||
displayAsHex = isStruct = false;
|
||||
displayAsHex = isStruct = rowMajor = false;
|
||||
for(int i = 0; i < 16; i++)
|
||||
value.uv[i] = 0;
|
||||
type = VarType::UInt;
|
||||
|
||||
@@ -640,7 +640,7 @@ private:
|
||||
// m_Replay is set
|
||||
uint64_t m_PreviewOutput = 0;
|
||||
// The previous windowing data, so we can detect changes and recreate the window
|
||||
WindowingData m_PreviewWindowingData;
|
||||
WindowingData m_PreviewWindowingData = {WindowingSystem::Unknown};
|
||||
|
||||
uint32_t m_EventID = 0;
|
||||
|
||||
|
||||
@@ -296,7 +296,7 @@ void D3D11TextRenderer::RenderTextInternal(float x, float y, const char *text)
|
||||
|
||||
RDCASSERT(strlen(text) < FONT_MAX_CHARS);
|
||||
|
||||
FontCBuffer data;
|
||||
FontCBuffer data = {};
|
||||
|
||||
data.TextPosition.x = x;
|
||||
data.TextPosition.y = y;
|
||||
|
||||
@@ -442,7 +442,7 @@ void D3D12TextRenderer::RenderTextInternal(ID3D12GraphicsCommandList *list, floa
|
||||
|
||||
RDCASSERT(strlen(text) < FONT_MAX_CHARS);
|
||||
|
||||
FontCBuffer data;
|
||||
FontCBuffer data = {};
|
||||
|
||||
data.TextPosition.x = x;
|
||||
data.TextPosition.y = y;
|
||||
|
||||
@@ -1572,7 +1572,7 @@ private:
|
||||
}
|
||||
|
||||
void *m_pUserData = NULL;
|
||||
uint64_t m_Version;
|
||||
uint64_t m_Version = 0;
|
||||
|
||||
uint64_t m_StructArg = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user