Implementing Commandbuffers

This commit is contained in:
Dynamitos committed 2020-03-24 21:05:32 +01:00
1 parent fda46a7ab8
commit ae92439164
27 files changed
+779 -311

No files matched your search

+3 -3
View File
@@ -28,7 +28,7 @@ namespace Seele
class Allocation
{
public:
Allocation(PGraphics graphics, Allocator* allocator, uint32 size, uint32 memoryTypeIndex, VkMemoryPropertyFlags properties, bool isDedicated);
Allocation(WGraphics graphics, Allocator* allocator, uint32 size, uint32 memoryTypeIndex, VkMemoryPropertyFlags properties, bool isDedicated);
PSubAllocation getSuballocation(uint32 size, uint32 alignment);
private:
Allocator* allocator;
@@ -50,7 +50,7 @@ namespace Seele
class Allocator
{
public:
Allocator(PGraphics graphics);
Allocator(WGraphics graphics);
~Allocator();
PSubAllocation allocate(uint64 size, const VkMemoryRequirements2& requirements, VkMemoryPropertyFlags props);
@@ -66,7 +66,7 @@ namespace Seele
};
Array<HeapInfo> heaps;
VkResult findMemoryType(uint32 typeBits, VkMemoryPropertyFlags properties, uint32* typeIndex);
PGraphics graphics;
WGraphics graphics;
VkPhysicalDeviceMemoryProperties memProperties;
};
DEFINE_REF(Allocator);