project-aster/aster/buffer.h

22 lines
471 B
C

// =============================================
// Aster: buffer.h
// Copyright (c) 2020-2024 Anish Bhobe
// =============================================
#pragma once
#include "global.h"
struct Device;
struct Buffer
{
const Device *m_Device{};
vk::Buffer m_Buffer{};
VmaAllocation m_Allocation{};
usize m_Size{};
NameString m_Name;
Buffer(const Device *device, usize size, vk::BufferUsageFlags usage, NameString &&name);
~Buffer();
};