Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Slate
Inheritance Hierarchy
- TSlateTexture
- FSlateUpdatableTexture
- FDeferredCleanupInterface
- FRenderResource
- FSlateTexture2DRHIRef
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Slate/SlateTextures.h |
| Include | #include "Slate/SlateTextures.h" |
Syntax
class FSlateTexture2DRHIRef :
public TSlateTexture< FTexture2DRHIRef >,
public FSlateUpdatableTexture,
public FDeferredCleanupInterface,
public FRenderResource
Remarks
Encapsulates a Texture2DRHIRef for use by a Slate rendering implementation
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32 | Height | Height of this texture | |
| uint32 | Width | Width of this texture |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSlateTexture2DRHIRef
(
FTexture2DRHIRef InRef, |
|||
FSlateTexture2DRHIRef
(
uint32 InWidth, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Clears texture data being used. Can only be accessed on the render thread | ||
| EPixelFormat | Returns the pixel format of this texture | ||
| FTexture2DRHIRef | GetRHIRef () |
||
| bool | IsValid () |
||
| void | Resize
(
uint32 Width, |
Resize the texture. Can only be called on the render thread | |
| void | SetRHIRef
(
FTexture2DRHIRef InRenderTargetTexture, |
Sets the RHI Ref to use. | |
| void | SetTextureData
(
FSlateTextureDataPtr NewTextureData |
Sets the bulk data for this texture. | |
| void | SetTextureData
(
FSlateTextureDataPtr NewTextureData, |
Sets the bulk data for this texture and the format of the rendering resource Note: Does not reinitialize the resource. |
Overridden from FSlateShaderResource
| Type | Name | Description | |
|---|---|---|---|
| uint32 | GetHeight () |
Gets the height of the resource. | |
| uint32 | GetWidth () |
Gets the width of the resource. |
Overridden from FSlateUpdatableTexture
| 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 |
Overridden from FRenderResource
| Type | Name | Description | |
|---|---|---|---|
| void | InitRHI
(
FRHICommandListBase& RHICmdList |
FRenderResource Interface. | |
| void | ReleaseRHI () |
FRenderResource Interface. |