![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SlateUpdatableTexture.h>
Inheritance diagram for FSlateUpdatableTexture:Public Member Functions | |
| virtual | ~FSlateUpdatableTexture () |
| virtual FSlateShaderResource * | GetSlateResource ()=0 |
| virtual FRenderResource * | GetRenderResource () |
| virtual void | Cleanup ()=0 |
| virtual void | ResizeTexture (uint32 Width, uint32 Height)=0 |
| virtual void | UpdateTexture (const TArray< uint8 > &Bytes)=0 |
| virtual void | UpdateTextureThreadSafe (const TArray< uint8 > &Bytes)=0 |
| virtual void | UpdateTextureThreadSafeRaw (uint32 Width, uint32 Height, const void *Buffer, const FIntRect &Dirty=FIntRect())=0 |
| virtual void | UpdateTextureThreadSafeWithTextureData (FSlateTextureData *TextureData)=0 |
| virtual void | UpdateTextureThreadSafeWithKeyedTextureHandle (void *TextureHandle, int KeyLockVal, int KeyUnlockVal, const FIntRect &Dirty=FIntRect())=0 |
An interface to deal with a slate texture that can be updated dynamically
|
inlinevirtual |
Virtual destructor
Deferred or Immediate cleanup of this data depending on what is required.
Implemented in FSlateTexture2DRHIRef.
|
inlinevirtual |
Gets the interface to the underlying render resource (may not always be used)
Reimplemented in FSlateTexture2DRHIRef.
|
pure virtual |
Gets the interface to the underlying platform independent texture
Implemented in FSlateTexture2DRHIRef.
Resize the texture.
| Width | New texture width |
| Height | New texture height |
Implemented in FSlateTexture2DRHIRef.
Updates the texture contents via a byte array. Note: This method is not thread safe so make sure you do not use the Bytes data on another after it is passed in
| Bytes | Array of texture data |
Implemented in FSlateTexture2DRHIRef.
|
pure virtual |
Updates the texture contents via a byte array making a copy first for thread safety
| Bytes | Array of texture data |
Implemented in FSlateTexture2DRHIRef.
|
pure virtual |
Update the texture from a raw byte buffer. Should only be used when integrating with third party APIs that provide a raw pointer to texture data. This method does a copy of the buffer for thread safety. Will resize the texture if the passed in width and height is different from the current size. The passed in size must correspond to the size of the buffer and the data must be valid for the entire texture, even when passing in a Dirty rectangle, as the implementation may chose to copy a larger area than specified. The RHI renderer currently ignores the Dirty argument completely.
| Width | New texture width |
| Height | New texture height |
| Buffer | A void pointer to a byte buffer. |
| Dirty | An optional hint of the area to update. An empty rectangle means that the entire texture should be updated. |
Implemented in FSlateTexture2DRHIRef.
|
pure virtual |
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.
| 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. |
Implemented in FSlateTexture2DRHIRef.
|
pure virtual |
Update the texture from a provided FSlateTextureData buffer, also transferring ownership of the texture
| TextureData | A pointer to the provided FSlateTextureData. |
NOTE: This function transfers ownership of the FSlateTextureData object. It will be deleted once the texture is used
Implemented in FSlateTexture2DRHIRef.