Code cleanup
This commit is contained in:
parent
0f56b8270d
commit
fb895169ba
2 changed files with 7 additions and 7 deletions
|
|
@ -44,23 +44,23 @@ public:
|
|||
// Vertex buffer and attributes
|
||||
struct {
|
||||
VkDeviceMemory memory{ VK_NULL_HANDLE }; // Handle to the device memory for this buffer
|
||||
VkBuffer buffer; // Handle to the Vulkan buffer object that the memory is bound to
|
||||
VkBuffer buffer{ VK_NULL_HANDLE }; // Handle to the Vulkan buffer object that the memory is bound to
|
||||
} vertices;
|
||||
|
||||
// Index buffer
|
||||
struct {
|
||||
VkDeviceMemory memory{ VK_NULL_HANDLE };
|
||||
VkBuffer buffer;
|
||||
VkBuffer buffer{ VK_NULL_HANDLE };
|
||||
uint32_t count{ 0 };
|
||||
} indices;
|
||||
|
||||
// Uniform buffer block object
|
||||
struct UniformBuffer {
|
||||
VkDeviceMemory memory;
|
||||
VkBuffer buffer;
|
||||
VkDeviceMemory memory{ VK_NULL_HANDLE };
|
||||
VkBuffer buffer{ VK_NULL_HANDLE };
|
||||
// The descriptor set stores the resources bound to the binding points in a shader
|
||||
// It connects the binding points of the different shaders with the buffers and images used for those bindings
|
||||
VkDescriptorSet descriptorSet;
|
||||
VkDescriptorSet descriptorSet{ VK_NULL_HANDLE };
|
||||
// We keep a pointer to the mapped buffer, so we can easily update it's contents via a memcpy
|
||||
uint8_t* mapped{ nullptr };
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue