Plasma Engine  2.0
Loading...
Searching...
No Matches
plGALSharedTexture Class Referenceabstract

Optional interface for plGALTexture if it was created via plGALDevice::CreateSharedTexture. A plGALTexture can be a shared texture, but doesn't have to be. Access through plGALDevice::GetSharedTexture. More...

#include <Texture.h>

Inheritance diagram for plGALSharedTexture:

Public Member Functions

virtual plGALPlatformSharedHandle GetSharedHandle () const =0
 Returns the handle that can be used to open this texture on another device / process. Call plGALDevice::OpenSharedTexture to do so.
 
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 value.
 
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 value.
 

Detailed Description

Optional interface for plGALTexture if it was created via plGALDevice::CreateSharedTexture. A plGALTexture can be a shared texture, but doesn't have to be. Access through plGALDevice::GetSharedTexture.

Member Function Documentation

◆ GetSharedHandle()

virtual plGALPlatformSharedHandle plGALSharedTexture::GetSharedHandle ( ) const
pure virtual

Returns the handle that can be used to open this texture on another device / process. Call plGALDevice::OpenSharedTexture to do so.

Implemented in plGALSharedTextureDX11, and plGALSharedTextureVulkan.

◆ SignalSemaphoreGPU()

virtual void plGALSharedTexture::SignalSemaphoreGPU ( plUInt64 uiValue) const
pure virtual

Once the current render pipeline is done on the GPU, the semaphore will be signaled with the given value.

Parameters
iValueValue the semaphore is set to once we are done using the texture (after the current render pipeline).

Implemented in plGALSharedTextureDX11, and plGALSharedTextureVulkan.

◆ WaitSemaphoreGPU()

virtual void plGALSharedTexture::WaitSemaphoreGPU ( plUInt64 uiValue) const
pure virtual

Before the current render pipeline is executed, the GPU will wait for the semaphore to have the given value.

Parameters
iValueValue the semaphore needs to have before the texture can be used.

Implemented in plGALSharedTextureDX11, and plGALSharedTextureVulkan.


The documentation for this class was generated from the following file: