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
7
class
plGALTexture
;
8
class
plGALBuffer
;
9
10
class
PL_RENDERERFOUNDATION_DLL
plGALTextureResourceView
:
public
plGALObject
<plGALTextureResourceViewCreationDescription>
11
{
12
public
:
13
PL_ALWAYS_INLINE
plGALTexture
* GetResource()
const
{
return
m_pResource; }
14
15
protected
:
16
friend
class
plGALDevice
;
17
18
plGALTextureResourceView
(
plGALTexture
* pResource,
const
plGALTextureResourceViewCreationDescription
& description);
19
20
virtual
~plGALTextureResourceView
();
21
22
virtual
plResult
InitPlatform(
plGALDevice
* pDevice) = 0;
23
24
virtual
plResult
DeInitPlatform(
plGALDevice
* pDevice) = 0;
25
26
plGALTexture
* m_pResource;
27
};
28
29
class
PL_RENDERERFOUNDATION_DLL
plGALBufferResourceView
:
public
plGALObject
<plGALBufferResourceViewCreationDescription>
30
{
31
public
:
32
PL_ALWAYS_INLINE
plGALBuffer
* GetResource()
const
{
return
m_pResource; }
33
34
protected
:
35
friend
class
plGALDevice
;
36
37
plGALBufferResourceView
(
plGALBuffer
* pResource,
const
plGALBufferResourceViewCreationDescription
& description);
38
39
virtual
~plGALBufferResourceView
();
40
41
virtual
plResult
InitPlatform(
plGALDevice
* pDevice) = 0;
42
43
virtual
plResult
DeInitPlatform(
plGALDevice
* pDevice) = 0;
44
45
plGALBuffer
* m_pResource;
46
};
plGALBuffer
Definition
Buffer.h:8
plGALBufferResourceView
Definition
ResourceView.h:30
plGALDevice
The plRenderDevice class is the primary interface for interactions with rendering APIs It contains a ...
Definition
Device.h:19
plGALObject
Base class for GAL objects, stores a creation description of the object and also allows for reference...
Definition
RendererFoundationDLL.h:374
plGALTexture
Definition
Texture.h:8
plGALTextureResourceView
Definition
ResourceView.h:11
plGALBufferResourceViewCreationDescription
Definition
Descriptors.h:211
plGALTextureResourceViewCreationDescription
Definition
Descriptors.h:201
plResult
Default enum for returning failure or success, instead of using a bool.
Definition
Types.h:54
Code
Engine
RendererFoundation
Resources
ResourceView.h
Generated by
1.11.0