VulkanEngine 0.1
Graphics engine using Vulkan
Loading...
Searching...
No Matches
BufferBase.h
1// Copyright (c) 2024 Michael Carlie. All Rights Reserved.
2//
3// This software is released under the MIT License.
4// https://opensource.org/licenses/MIT
5
6#ifndef INCLUDE_VULKANENGINE_BUFFERBASE_H_
7#define INCLUDE_VULKANENGINE_BUFFERBASE_H_
8
9#ifdef __clang__
10#pragma clang diagnostic push
11#pragma clang diagnostic ignored "-Wnullability-completeness"
12#endif
13#include <vk_mem_alloc.h>
14#ifdef __clang__
15#pragma clang diagnostic pop
16#endif
17
18namespace VulkanEngine {
19
22 public:
26 virtual void updateBuffer(const void* _data, size_t _data_size);
27
28 protected:
31 VmaAllocation vma_allocation;
32};
33
34} // namespace VulkanEngine
35
36#endif // INCLUDE_VULKANENGINE_BUFFERBASE_H_
Base class for various classes which represent data buffers on the GPU/CPU.
Definition: BufferBase.h:21
VmaAllocation vma_allocation
Definition: BufferBase.h:31
virtual void updateBuffer(const void *_data, size_t _data_size)
Definition: BufferBase.cpp:24
TODO development of this class is in progress.
Definition: Attribute.h:13