Small code refactoring - preparing for further parts of the tutorial.

This commit is contained in:
Pawel Lapinski
2018-02-27 10:51:55 +01:00
parent c3741bf127
commit 85c53b9c33
11 changed files with 48 additions and 114 deletions

View File

@@ -57,6 +57,40 @@ namespace ApiWithoutSecrets {
}
};
// ************************************************************ //
// BufferParameters //
// //
// Vulkan Buffer's parameters container class //
// ************************************************************ //
struct BufferParameters {
VkBuffer Handle;
VkDeviceMemory Memory;
uint32_t Size;
BufferParameters() :
Handle( VK_NULL_HANDLE ),
Memory( VK_NULL_HANDLE ),
Size( 0 ) {
}
};
// ************************************************************ //
// DescriptorParameters //
// //
// Container class for descriptor related resources //
// ************************************************************ //
struct DescriptorSetParameters {
VkDescriptorPool Pool;
VkDescriptorSetLayout Layout;
VkDescriptorSet Handle;
DescriptorSetParameters() :
Pool( VK_NULL_HANDLE ),
Layout( VK_NULL_HANDLE ),
Handle( VK_NULL_HANDLE ) {
}
};
// ************************************************************ //
// SwapChainParameters //
// //