summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-04-08 18:00:47 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-04-08 18:00:47 +0000
commitf41cab9a3aed92f6b9febbe58760a0573c0b2d6d (patch)
tree197f6a31e622fa17a3f7aaba479af10c3d4be3a3 /Graphics/GraphicsEngine
parentAdded buffer view initialization (diff)
downloadDiligentCore-f41cab9a3aed92f6b9febbe58760a0573c0b2d6d.tar.gz
DiligentCore-f41cab9a3aed92f6b9febbe58760a0573c0b2d6d.zip
Vulkan progress:
* added vulkan logical device & vulkan object wrappers * added texture intialization * added cmd buffer pool* * added fence pool * added object release queues
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/GraphicsTypes.h26
1 files changed, 20 insertions, 6 deletions
diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
index 53fc1039..5e491482 100644
--- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h
+++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
@@ -1211,17 +1211,31 @@ namespace Diligent
/// Component type, see Diligent::COMPONENT_TYPE for details.
COMPONENT_TYPE ComponentType;
+ /// Bool flag indicating if the format is a typeless format
+ bool IsTypeless;
+
/// Initializes the structure
- explicit TextureFormatAttribs( TEXTURE_FORMAT _Format = TEX_FORMAT_UNKNOWN,
- const Char *_Name = "TEX_FORMAT_UNKNOWN",
- Uint32 _ComponentSize = 0,
- Uint32 _NumComponents = 0,
- COMPONENT_TYPE _ComponentType = COMPONENT_TYPE_UNDEFINED ) :
+ explicit TextureFormatAttribs( TEXTURE_FORMAT _Format,
+ const Char *_Name,
+ Uint32 _ComponentSize,
+ Uint32 _NumComponents,
+ COMPONENT_TYPE _ComponentType,
+ bool _IsTypeless) :
Format(_Format),
Name(_Name),
ComponentSize(_ComponentSize),
NumComponents(_NumComponents),
- ComponentType(_ComponentType)
+ ComponentType(_ComponentType),
+ IsTypeless(_IsTypeless)
+ {}
+
+ TextureFormatAttribs() :
+ Format(TEX_FORMAT_UNKNOWN),
+ Name("TEX_FORMAT_UNKNOWN"),
+ ComponentSize(0),
+ NumComponents(0),
+ ComponentType(COMPONENT_TYPE_UNDEFINED),
+ IsTypeless(false)
{}
};