Add note why command buffers are not freed individually
authorPyry Haulos <phaulos@google.com>
Thu, 4 Aug 2016 18:34:01 +0000 (11:34 -0700)
committerPyry Haulos <phaulos@google.com>
Thu, 4 Aug 2016 18:34:01 +0000 (11:34 -0700)
external/vulkancts/modules/vulkan/api/vktApiCommandBuffersTests.cpp

index 178e44b..1bc8947 100644 (file)
@@ -72,6 +72,9 @@ protected:
        const deUint32                                                  m_queueFamilyIndex;
        Allocator&                                                              m_allocator;
 
+       // \note All VkCommandBuffers are allocated from m_commandPool so there is no need
+       //       to free them separately as the auto-generated dtor will do that through
+       //       destroying the pool.
        Move<VkCommandPool>                                             m_commandPool;
        VkCommandBuffer                                                 m_primaryCommandBuffers[NumBuffers];
 };