Plasma Engine  2.0
Loading...
Searching...
No Matches
Buffer.h
1
2#pragma once
3
4#include <RendererFoundation/Descriptors/Descriptors.h>
5#include <RendererFoundation/Resources/Resource.h>
6
7class PL_RENDERERFOUNDATION_DLL plGALBuffer : public plGALResource<plGALBufferCreationDescription>
8{
9public:
10 PL_ALWAYS_INLINE plUInt32 GetSize() const;
11
12protected:
13 friend class plGALDevice;
14
16
17 virtual ~plGALBuffer();
18
19 virtual plResult InitPlatform(plGALDevice* pDevice, plArrayPtr<const plUInt8> pInitialData) = 0;
20
21 virtual plResult DeInitPlatform(plGALDevice* pDevice) = 0;
22
23protected:
24 plGALBufferResourceViewHandle m_hDefaultResourceView;
27};
28
29#include <RendererFoundation/Resources/Implementation/Buffer_inl.h>
This class encapsulates an array and it's size. It is recommended to use this class instead of plain ...
Definition ArrayPtr.h:37
Definition Buffer.h:8
Definition RendererFoundationDLL.h:432
The plRenderDevice class is the primary interface for interactions with rendering APIs It contains a ...
Definition Device.h:19
Base class for GAL resources, stores a creation description of the object and also allows for referen...
Definition Resource.h:37
Definition HashTable.h:333
Definition Descriptors.h:169
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54