summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-16 19:46:29 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-16 19:46:29 +0000
commit19db0a0e7cce02ce2dc55b37c1b36ad90889e429 (patch)
tree005b8a9554bfdd1b362feb9bdcd9a3e263085324 /Graphics/GraphicsEngine
parentUpdated release history (better wording) (diff)
downloadDiligentCore-19db0a0e7cce02ce2dc55b37c1b36ad90889e429.tar.gz
DiligentCore-19db0a0e7cce02ce2dc55b37c1b36ad90889e429.zip
Fixed a number of minor issues revealed by code analysis
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/GraphicsTypes.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
index 16565ae0..d515b2a1 100644
--- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h
+++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
@@ -1519,32 +1519,34 @@ namespace Diligent
Uint8 BlockHeight;
/// Initializes the structure
- explicit TextureFormatAttribs( const Char *_Name,
+ explicit TextureFormatAttribs( const Char* _Name,
TEXTURE_FORMAT _Format,
- Uint8 _ComponentSize,
- Uint8 _NumComponents,
+ Uint8 _ComponentSize,
+ Uint8 _NumComponents,
COMPONENT_TYPE _ComponentType,
- bool _IsTypeless,
- Uint8 _BlockWidth,
- Uint8 _BlockHeight) :
- Name(_Name),
- Format(_Format),
+ bool _IsTypeless,
+ Uint8 _BlockWidth,
+ Uint8 _BlockHeight) :
+ Name (_Name),
+ Format (_Format),
ComponentSize(_ComponentSize),
NumComponents(_NumComponents),
ComponentType(_ComponentType),
- IsTypeless(_IsTypeless),
- BlockWidth(_BlockWidth),
- BlockHeight(_BlockHeight)
+ IsTypeless (_IsTypeless),
+ BlockWidth (_BlockWidth),
+ BlockHeight (_BlockHeight)
{
}
TextureFormatAttribs() :
- Name("TEX_FORMAT_UNKNOWN"),
- Format(TEX_FORMAT_UNKNOWN),
+ Name ("TEX_FORMAT_UNKNOWN"),
+ Format (TEX_FORMAT_UNKNOWN),
ComponentSize(0),
NumComponents(0),
ComponentType(COMPONENT_TYPE_UNDEFINED),
- IsTypeless(false)
+ IsTypeless (false),
+ BlockWidth (0),
+ BlockHeight (0)
{}
};