Runtime ShaderCompilation with Include Features

This commit is contained in:
Metehan Tuncbilek
2024-07-15 17:31:02 +03:00
parent 5aa84db3e2
commit 2b36969a84
8 changed files with 180 additions and 12 deletions

View File

@@ -27,6 +27,10 @@ namespace OpenVulkano::Vulkan
vk::MemoryPropertyFlags properties;
void* mapped = nullptr;
ManagedBuffer(MemoryAllocation* alloc, vk::DeviceSize offset, vk::DeviceSize size, vk::Buffer buffer, vk::BufferUsageFlags usageFlags, vk::MemoryPropertyFlags memProperties)
: allocation(alloc), offset(offset), size(size), buffer(buffer), usage(usageFlags), properties(memProperties), mapped(nullptr)
{}
~ManagedBuffer()
{
allocation->device.destroy(buffer);