Plasma Engine  2.0
Loading...
Searching...
No Matches
ResourceView.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 plGALTextureResourceView : public plGALObject<plGALTextureResourceViewCreationDescription>
11{
12public:
13 PL_ALWAYS_INLINE plGALTexture* GetResource() const { return m_pResource; }
14
15protected:
16 friend class plGALDevice;
17
19
21
22 virtual plResult InitPlatform(plGALDevice* pDevice) = 0;
23
24 virtual plResult DeInitPlatform(plGALDevice* pDevice) = 0;
25
26 plGALTexture* m_pResource;
27};
28
29class PL_RENDERERFOUNDATION_DLL plGALBufferResourceView : public plGALObject<plGALBufferResourceViewCreationDescription>
30{
31public:
32 PL_ALWAYS_INLINE plGALBuffer* GetResource() const { return m_pResource; }
33
34protected:
35 friend class plGALDevice;
36
38
40
41 virtual plResult InitPlatform(plGALDevice* pDevice) = 0;
42
43 virtual plResult DeInitPlatform(plGALDevice* pDevice) = 0;
44
45 plGALBuffer* m_pResource;
46};
Definition Buffer.h:8
Definition ResourceView.h:30
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 Texture.h:8
Definition ResourceView.h:11
Definition Descriptors.h:211
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54