Plasma Engine  2.0
Loading...
Searching...
No Matches
SharedTextureDX11.h
1#pragma once
2
3#include <RendererDX11/Resources/TextureDX11.h>
4
5struct IDXGIKeyedMutex;
6
8{
10
11protected:
12 friend class plGALDeviceDX11;
13 friend class plMemoryUtils;
14
17
18 virtual plResult InitPlatform(plGALDevice* pDevice, plArrayPtr<plGALSystemMemoryDescription> pInitialData) override;
19 virtual plResult DeInitPlatform(plGALDevice* pDevice) override;
20
21 virtual plGALPlatformSharedHandle GetSharedHandle() const override;
22 virtual void WaitSemaphoreGPU(plUInt64 uiValue) const override;
23 virtual void SignalSemaphoreGPU(plUInt64 uiValue) const override;
24
25protected:
27 plGALPlatformSharedHandle m_hSharedHandle;
28 IDXGIKeyedMutex* m_pKeyedMutex = nullptr;
29};
This class encapsulates an array and it's size. It is recommended to use this class instead of plain ...
Definition ArrayPtr.h:37
The DX11 device implementation of the graphics abstraction layer.
Definition DeviceDX11.h:32
The plRenderDevice class is the primary interface for interactions with rendering APIs It contains a ...
Definition Device.h:19
Definition SharedTextureDX11.h:8
virtual void WaitSemaphoreGPU(plUInt64 uiValue) const override
Before the current render pipeline is executed, the GPU will wait for the semaphore to have the given...
Definition SharedTextureDX11.cpp:113
virtual void SignalSemaphoreGPU(plUInt64 uiValue) const override
Once the current render pipeline is done on the GPU, the semaphore will be signaled with the given va...
Definition SharedTextureDX11.cpp:118
virtual plGALPlatformSharedHandle GetSharedHandle() const override
Returns the handle that can be used to open this texture on another device / process....
Definition SharedTextureDX11.cpp:108
Optional interface for plGALTexture if it was created via plGALDevice::CreateSharedTexture....
Definition Texture.h:33
Definition TextureDX11.h:14
This class provides functions to work on raw memory.
Definition MemoryUtils.h:26
A custom enum implementation that allows to define the underlying storage type to control its memory ...
Definition Enum.h:37
Definition Descriptors.h:277
@ None
Not shared.
Definition Enumerations.h:229
Definition Descriptors.h:177
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54