Plasma Engine  2.0
Loading...
Searching...
No Matches
SharedTextureVulkan.h
1#pragma once
2
3#include <RendererVulkan/Resources/TextureVulkan.h>
4
6{
8
9protected:
10 friend class plGALDeviceVulkan;
11 friend class plMemoryUtils;
12
15
16 virtual plResult InitPlatform(plGALDevice* pDevice, plArrayPtr<plGALSystemMemoryDescription> pInitialData) override;
17 virtual plResult DeInitPlatform(plGALDevice* pDevice) override;
18
19 virtual plGALPlatformSharedHandle GetSharedHandle() const override;
20 virtual void WaitSemaphoreGPU(plUInt64 uiValue) const override;
21 virtual void SignalSemaphoreGPU(plUInt64 uiValue) const override;
22
23protected:
25 plGALPlatformSharedHandle m_hSharedHandle;
26 vk::Semaphore m_SharedSemaphore;
27};
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
The Vulkan device implementation of the graphics abstraction layer.
Definition DeviceVulkan.h:58
Optional interface for plGALTexture if it was created via plGALDevice::CreateSharedTexture....
Definition Texture.h:33
Definition SharedTextureVulkan.h:6
virtual plGALPlatformSharedHandle GetSharedHandle() const override
Returns the handle that can be used to open this texture on another device / process....
Definition SharedTextureVulkan.cpp:376
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 SharedTextureVulkan.cpp:386
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 SharedTextureVulkan.cpp:381
Definition TextureVulkan.h:11
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