PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
StorageBuffer.hpp
1#pragma once
2
3#include "PixelBullet/Graphics/Buffers/Buffer.hpp"
4#include "PixelBullet/Graphics/Descriptors/Descriptor.hpp"
5
6namespace PixelBullet
7{
8 class StorageBuffer : public Descriptor, public Buffer
9 {
10 public:
11 explicit StorageBuffer(VkDeviceSize size, const void* data = nullptr);
12
13 void Update(const void* newData);
14
15 WriteDescriptorSet GetWriteDescriptor(uint32_t binding, VkDescriptorType descriptorType,
16 const std::optional<OffsetSize>& offsetSize) const override;
17
18 static VkDescriptorSetLayoutBinding GetDescriptorSetLayout(uint32_t binding, VkDescriptorType descriptorType,
19 VkShaderStageFlags stage, uint32_t count);
20 };
21} // namespace PixelBullet
Interface that represents a buffer.
Definition Buffer.hpp:11
Definition Descriptor.hpp:75
Definition StorageBuffer.hpp:9
Definition Descriptor.hpp:45