Choose your operating system:
Windows
macOS
Linux
| TSlateTexture | ||
| FSlateUpdatableTexture | ||
| FDeferredCleanupInterface | ||
| FRenderResource
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/Slate/SlateTextures.h |
Include |
#include "Slate/SlateTextures.h" |
class FSlateTexture2DRHIRef :
public TSlateTexture< FTexture2DRHIRef >,
public FSlateUpdatableTexture,
public FDeferredCleanupInterface,
public FRenderResource
Encapsulates a Texture2DRHIRef for use by a Slate rendering implementation
Name | Description | |
---|---|---|
|
FSlateTexture2DRHIRef ( |
|
|
FSlateTexture2DRHIRef ( |
Name | Description | |
---|---|---|
|
~FSlateTexture2DRHIRef() |
Name | Description | ||
---|---|---|---|
|
ClearTextureData() |
Clears texture data being used. Can only be accessed on the render thread |
|
|
GetPixelFormat() |
Returns the pixel format of this texture |
|
|
FTexture2DRH... |
GetRHIRef() |
|
|
IsValid() |
||
|
Resize |
Resize the texture. Can only be called on the render thread |
|
|
SetRHIRef ( |
Sets the RHI Ref to use. |
|
|
SetTextureData ( |
Sets the bulk data for this texture. |
|
|
SetTextureData ( |
Sets the bulk data for this texture and the format of the rendering resource |
Name | Description | ||
---|---|---|---|
|
GetHeight() |
Gets the height of the resource. |
|
|
GetWidth() |
Gets the width of the resource. |
Name | Description | ||
---|---|---|---|
|
Cleanup() |
Deferred or Immediate cleanup of this data depending on what is required. |
|
|
FRenderResou... |
GetRenderResource() |
Gets the interface to the underlying render resource (may not always be used) |
|
FSlateShader... |
GetSlateResource() |
Gets the interface to the underlying platform independent texture |
|
ResizeTexture |
Resize the texture. |
|
|
UpdateTexture |
Updates the texture contents via a byte array. |
|
|
UpdateTextureThreadSafe |
Updates the texture contents via a byte array making a copy first for thread safety |
|
|
UpdateTextureThreadSafeRaw |
Update the texture from a raw byte buffer. |
|
|
UpdateTextureThreadSafeWithKeyedTextureHandle |
Update the texture from a shared texture handle. |
|
|
UpdateTextureThreadSafeWithTextureData ( |
Update the texture from a provided FSlateTextureData buffer, also transferring ownership of the texture |
Name | Description | ||
---|---|---|---|
|
InitDynamicRHI() |
FRenderResource Interface. |
|
|
ReleaseDynamicRHI() |
FRenderResource Interface. |