FSlateUpdatableTexture

An interface to deal with a slate texture that can be updated dynamically

Windows
MacOS
Linux

Inheritance Hierarchy

FSlateUpdatableTexture

FSlateTexture2DRHIRef

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Textures/SlateUpdatableTexture.h

Include

#include "Textures/SlateUpdatableTexture.h"

Syntax

class FSlateUpdatableTexture

Remarks

An interface to deal with a slate texture that can be updated dynamically

Destructors

Name Description

Public function Virtual

~FSlateUpdatableTexture()

Virtual destructor

Functions

Name Description

Public function

void

 

Cleanup()

Deferred or Immediate cleanup of this data depending on what is required.

Public function Virtual

FRenderResou...

 

GetRenderResource()

Gets the interface to the underlying render resource (may not always be used)

Public function

FSlateShader...

 

GetSlateResource()

Gets the interface to the underlying platform independent texture

Public function

void

 

ResizeTexture

(
    uint32 Width,
    uint32 Height
)

Resize the texture.

Public function

void

 

UpdateTexture

(
    const TArray< uint8 >& Bytes
)

Updates the texture contents via a byte array.

Public function

void

 

UpdateTextureThreadSafe

(
    const TArray< uint8 >& Bytes
)

Updates the texture contents via a byte array making a copy first for thread safety

Public function

void

 

UpdateTextureThreadSafeRaw

(
    uint32 Width,
    uint32 Height,
    const void* Buffer,
    const FIntRect& Dirty
)

Update the texture from a raw byte buffer.

Public function

void

 

UpdateTextureThreadSafeWithTextureData

(
    FSlateTextureData* TextureData
)

Update the texture from a provided FSlateTextureData buffer, also transferring ownership of the texture

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss