FSlateTexture2DRHIRef::UpdateTextureThreadSafeWithKeyedTextureHandle

Update the texture from a shared texture handle.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

FSlateUpdatableTexture::UpdateTextureThreadSafeWithKeyedTextureHandle()

FSlateTexture2DRHIRef::UpdateTextureThreadSafeWithKeyedTextureHandle()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Slate/SlateTextures.h

Include

#include "Slate/SlateTextures.h"

Syntax

virtual void UpdateTextureThreadSafeWithKeyedTextureHandle
(
    void * TextureHandle,
    int KeyLockVal,
    int KeyUnlockVal,
    const FIntRect & Dirty
)

Remarks

Update the texture from a shared texture handle. The handle type/usage is render system dependent, D3D uses the D3D11 OpenSharedResource call On macOS we use an IOSurface.

Parameters

Parameter

Description

TextureHandle

A pointer to the opque texture handle provided by the OS.

Dirty

An optional hint of the area to update. An empty rectangle means that the entire texture should be updated.