Skip to content

Commit

Permalink
Fixed a few code scanning issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Aug 26, 2024
1 parent ea6de99 commit 1148951
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Components/src/BoundBoxRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ struct BoundBoxRenderer::BoundBoxShaderAttribs
float4x4 Transform;
float4 Color;

float PatternLength;
uint PatternMask;
float Padding0;
float Padding1;
float PatternLength = 32;
uint PatternMask = 0xFFFFFFFFu;
float Padding0 = 0;
float Padding1 = 0;
};

BoundBoxRenderer::BoundBoxRenderer(const CreateInfo& CI) :
Expand Down
8 changes: 4 additions & 4 deletions Components/src/EnvMapRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ struct EnvMapRenderer::EnvMapShaderAttribs
{
HLSL::ToneMappingAttribs ToneMapping;

float AverageLogLum;
float MipLevel;
float Alpha;
float Padding;
float AverageLogLum = 0.3f;
float MipLevel = 0.f;
float Alpha = 0.f;
float Padding = 0.f;
};

EnvMapRenderer::EnvMapRenderer(const CreateInfo& CI) :
Expand Down

0 comments on commit 1148951

Please sign in to comment.