Plasma Engine  2.0
Loading...
Searching...
No Matches
Texture.h
1
2#pragma once
3
4#include <RendererFoundation/Descriptors/Descriptors.h>
5#include <RendererFoundation/Resources/Resource.h>
6
7class PL_RENDERERFOUNDATION_DLL plGALTexture : public plGALResource<plGALTextureCreationDescription>
8{
9public:
10protected:
11 friend class plGALDevice;
12
14
15 virtual ~plGALTexture();
16
17 virtual plResult InitPlatform(plGALDevice* pDevice, plArrayPtr<plGALSystemMemoryDescription> pInitialData) = 0;
18
19 virtual plResult DeInitPlatform(plGALDevice* pDevice) = 0;
20
21protected:
22 plGALTextureResourceViewHandle m_hDefaultResourceView;
23 plGALRenderTargetViewHandle m_hDefaultRenderTargetView;
24
28};
29
32class PL_RENDERERFOUNDATION_DLL plGALSharedTexture
33{
34public:
39 virtual void WaitSemaphoreGPU(plUInt64 uiValue) const = 0;
42 virtual void SignalSemaphoreGPU(plUInt64 uiValue) const = 0;
43};
This class encapsulates an array and it's size. It is recommended to use this class instead of plain ...
Definition ArrayPtr.h:37
The plRenderDevice class is the primary interface for interactions with rendering APIs It contains a ...
Definition Device.h:19
Definition RendererFoundationDLL.h:453
Base class for GAL resources, stores a creation description of the object and also allows for referen...
Definition Resource.h:37
Optional interface for plGALTexture if it was created via plGALDevice::CreateSharedTexture....
Definition Texture.h:33
virtual void WaitSemaphoreGPU(plUInt64 uiValue) const =0
Before the current render pipeline is executed, the GPU will wait for the semaphore to have the given...
virtual void SignalSemaphoreGPU(plUInt64 uiValue) const =0
Once the current render pipeline is done on the GPU, the semaphore will be signaled with the given va...
virtual plGALPlatformSharedHandle GetSharedHandle() const =0
Returns the handle that can be used to open this texture on another device / process....
Definition Texture.h:8
Definition RendererFoundationDLL.h:425
Definition HashTable.h:333
Definition Descriptors.h:277
Definition Descriptors.h:177
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54