summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-05-12 03:51:38 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-05-12 03:51:38 +0000
commit8f10dad3656381cfa663f3cef71561bf2265164a (patch)
tree15fb2cb318b0c4a9bfca4aca46109c7df6a608d9 /Graphics/GraphicsEngine
parentAdded VulkanDescriptorPool (diff)
downloadDiligentCore-8f10dad3656381cfa663f3cef71561bf2265164a.tar.gz
DiligentCore-8f10dad3656381cfa663f3cef71561bf2265164a.zip
Added descriptor pool manager
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/GraphicsTypes.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
index 55643ca0..3324560a 100644
--- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h
+++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
@@ -1290,6 +1290,21 @@ namespace Diligent
/// towards the limit. Command buffers are only flushed when pipeline state is changed
/// or when backbuffer is presented.
Uint32 NumCommandsToFlushCmdBuffer = 256;
+
+ struct DescriptorPoolSize
+ {
+ Uint32 MaxDescriptorSets = 0;
+ Uint32 NumSeparateSamplerDescriptors = 0;
+ Uint32 NumCombinedSamplerDescriptors = 0;
+ Uint32 NumSampledImageDescriptors = 0;
+ Uint32 NumStorageImageDescriptors = 0;
+ Uint32 NumUniformBufferDescriptors = 0;
+ Uint32 NumStorageBufferDescriptors = 0;
+ Uint32 NumUniformTexelBufferDescriptors = 0;
+ Uint32 NumStorageTexelBufferDescriptors = 0;
+ };
+ DescriptorPoolSize MainDescriptorPoolSize = {1024, 1024, 8192, 8192, 1024, 4096, 4096, 1024, 1024};
+ DescriptorPoolSize DynamicDescriptorPoolSize = { 256, 256, 2048, 2048, 256, 1024, 1024, 256, 256};
};
/// Box