update parallel rdp

This commit is contained in:
Logan McNaughton committed 2023-07-28 10:26:20 -06:00
1 parent 265932ab6a
commit 299bbfe03f
56 files changed
+51210 -49596

No files matched your search

+10 -1
View File
@@ -55,6 +55,7 @@ struct BufferCreateInfo
VkDeviceSize size = 0;
VkBufferUsageFlags usage = 0;
BufferMiscFlags misc = 0;
VkMemoryRequirements allocation_requirements = {};
ExternalHandle external;
};
@@ -99,14 +100,22 @@ public:
ExternalHandle export_handle();
VkDeviceAddress get_device_address() const
{
VK_ASSERT(bda);
return bda;
}
private:
friend class Util::ObjectPool<Buffer>;
Buffer(Device *device, VkBuffer buffer, const DeviceAllocation &alloc, const BufferCreateInfo &info);
Buffer(Device *device, VkBuffer buffer, const DeviceAllocation &alloc, const BufferCreateInfo &info,
VkDeviceAddress bda);
Device *device;
VkBuffer buffer;
DeviceAllocation alloc;
BufferCreateInfo info;
VkDeviceAddress bda;
};
using BufferHandle = Util::IntrusivePtr<Buffer>;