ezEngine  Release 25.03
ezGALSharedTexture Class Referenceabstract

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

#include <Texture.h>

Inheritance diagram for ezGALSharedTexture:

Public Member Functions

virtual ezGALPlatformSharedHandle GetSharedHandle () const =0
 Returns the handle that can be used to open this texture on another device / process. Call ezGALDevice::OpenSharedTexture to do so.
 
virtual void WaitSemaphoreGPU (ezUInt64 uiValue) const =0
 Before the current render pipeline is executed, the GPU will wait for the semaphore to have the given value. More...
 
virtual void SignalSemaphoreGPU (ezUInt64 uiValue) const =0
 Once the current render pipeline is done on the GPU, the semaphore will be signaled with the given value. More...
 

Detailed Description

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

Member Function Documentation

◆ SignalSemaphoreGPU()

virtual void ezGALSharedTexture::SignalSemaphoreGPU ( ezUInt64  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 ezGALSharedTextureDX11, and ezGALSharedTextureVulkan.

◆ WaitSemaphoreGPU()

virtual void ezGALSharedTexture::WaitSemaphoreGPU ( ezUInt64  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 ezGALSharedTextureDX11, and ezGALSharedTextureVulkan.


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