project-aster/aster/buffer.h

25 lines
494 B
C

// =============================================
// Aster: buffer.h
// Copyright (c) 2020-2024 Anish Bhobe
// =============================================
#pragma once
#include "device.h"
#include "global.h"
struct Device;
struct Buffer
{
vk::Buffer m_Buffer = nullptr;
VmaAllocation m_Allocation = nullptr;
usize m_Size = 0;
void Destroy(const Device *device);
};
struct UniformBuffer : Buffer
{
void Init(const Device *device, usize size, cstr name = nullptr);
};