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

@@ -19,8 +19,7 @@
namespace ApiWithoutSecrets {
Tutorial03::Tutorial03() :
Vulkan() {
Tutorial03::Tutorial03() {
}
bool Tutorial03::CreateRenderPass() {

View File

@@ -20,8 +20,7 @@
namespace ApiWithoutSecrets {
Tutorial04::Tutorial04() :
Vulkan() {
Tutorial04::Tutorial04() {
}
bool Tutorial04::CreateRenderPass() {

View File

@@ -22,23 +22,6 @@
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 ) {
}
};
// ************************************************************ //
// VertexData //
// //

View File

@@ -19,8 +19,7 @@
namespace ApiWithoutSecrets {
Tutorial05::Tutorial05() :
Vulkan() {
Tutorial05::Tutorial05() {
}
bool Tutorial05::CreateRenderingResources() {

View File

@@ -22,23 +22,6 @@
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 ) {
}
};
// ************************************************************ //
// VertexData //
// //

View File

@@ -19,8 +19,7 @@
namespace ApiWithoutSecrets {
Tutorial06::Tutorial06() :
Vulkan() {
Tutorial06::Tutorial06() {
}
bool Tutorial06::CreateRenderingResources() {

View File

@@ -22,40 +22,6 @@
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 ) {
}
};
// ************************************************************ //
// VertexData //
// //

View File

@@ -19,8 +19,7 @@
namespace ApiWithoutSecrets {
Tutorial07::Tutorial07() :
Vulkan() {
Tutorial07::Tutorial07() {
}
bool Tutorial07::CreateRenderingResources() {

View File

@@ -22,40 +22,6 @@
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 ) {
}
};
// ************************************************************ //
// VertexData //
// //