From f41cab9a3aed92f6b9febbe58760a0573c0b2d6d Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 8 Apr 2018 11:00:47 -0700 Subject: Vulkan progress: * added vulkan logical device & vulkan object wrappers * added texture intialization * added cmd buffer pool* * added fence pool * added object release queues --- Graphics/GraphicsEngine/interface/GraphicsTypes.h | 26 +++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'Graphics/GraphicsEngine') 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) {} }; -- cgit v1.2.3