Plasma Engine  2.0
Loading...
Searching...
No Matches
UnorderedAccesView.h
1
2#pragma once
3
4#include <RendererFoundation/Descriptors/Descriptors.h>
5#include <RendererFoundation/Resources/Resource.h>
6
7class plGALTexture;
8class plGALBuffer;
9
10class PL_RENDERERFOUNDATION_DLL plGALTextureUnorderedAccessView : public plGALObject<plGALTextureUnorderedAccessViewCreationDescription>
11{
12public:
13 PL_ALWAYS_INLINE plGALResourceBase* GetResource() const { return m_pResource; }
14
15protected:
16 friend class plGALDevice;
17
19
21 virtual plResult InitPlatform(plGALDevice* pDevice) = 0;
22 virtual plResult DeInitPlatform(plGALDevice* pDevice) = 0;
23
24 plGALTexture* m_pResource;
25};
26
27class PL_RENDERERFOUNDATION_DLL plGALBufferUnorderedAccessView : public plGALObject<plGALBufferUnorderedAccessViewCreationDescription>
28{
29public:
30 PL_ALWAYS_INLINE plGALBuffer* GetResource() const { return m_pResource; }
31
32protected:
33 friend class plGALDevice;
34
36
38 virtual plResult InitPlatform(plGALDevice* pDevice) = 0;
39 virtual plResult DeInitPlatform(plGALDevice* pDevice) = 0;
40
41 plGALBuffer* m_pResource;
42};
Definition Buffer.h:8
Definition UnorderedAccesView.h:28
The plRenderDevice class is the primary interface for interactions with rendering APIs It contains a ...
Definition Device.h:19
Base class for GAL objects, stores a creation description of the object and also allows for reference...
Definition RendererFoundationDLL.h:374
Definition Resource.h:9
Definition Texture.h:8
Definition UnorderedAccesView.h:11
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54