Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Textures
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
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Cleanup () |
Deferred or Immediate cleanup of this data depending on what is required. | |
| FRenderResource * | Gets the interface to the underlying render resource (may not always be used) | ||
| FSlateShaderResource * | Gets the interface to the underlying platform independent texture | ||
| void | ResizeTexture
(
uint32 Width, |
Resize the texture. | |
| void | UpdateTexture
(
const TArray< uint8 >& Bytes |
Updates the texture contents via a byte array. | |
| void | UpdateTextureThreadSafe
(
const TArray< uint8 >& Bytes |
Updates the texture contents via a byte array making a copy first for thread safety | |
| void | UpdateTextureThreadSafeRaw
(
uint32 Width, |
Update the texture from a raw byte buffer. | |
| void | UpdateTextureThreadSafeWithKeyedTextureHandle
(
void* TextureHandle, |
Update the texture from a shared texture handle. | |
| void | UpdateTextureThreadSafeWithTextureData
(
FSlateTextureData* TextureData |
Update the texture from a provided FSlateTextureData buffer, also transferring ownership of the texture |