Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Slate
Inheritance Hierarchy
- TSlateTexture< FTextureRHIRef >
- 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< FTextureRHIRef >,
public FSlateUpdatableTexture,
public FDeferredCleanupInterface ,
public FRenderResource
Remarks
Encapsulates a Texture2DRHIRef for use by a Slate rendering implementation
Variables
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSlateTexture2DRHIRef
(
FTextureRHIRef InRef, |
|||
FSlateTexture2DRHIRef
(
uint32 InWidth, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Cleanup () |
||
| void | Clears texture data being used. Can only be accessed on the render thread | ||
| uint32 | GetHeight () |
||
| EPixelFormat | Returns the pixel format of this texture | ||
| FRenderResource * | |||
| FTextureRHIRef | GetRHIRef () |
||
| FSlateShaderResource * | |||
| uint32 | GetWidth () |
||
| bool | IsValid () |
||
| void | Resize the texture. Can only be called on the render thread | ||
| void | ResizeTexture
(
uint32 Width, |
||
| void | SetRHIRef
(
FTextureRHIRef 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. | |
| void | UpdateTexture
(
const TArray< uint8 >& Bytes |
||
| void | UpdateTextureThreadSafe
(
const TArray< uint8 >& Bytes |
||
| void | UpdateTextureThreadSafeRaw
(
uint32 Width, |
||
| void | UpdateTextureThreadSafeWithKeyedTextureHandle
(
void* TextureHandle, |
||
| void | UpdateTextureThreadSafeWithTextureData
(
FSlateTextureData* BulkData |
Overridden from FRenderResource
| Type | Name | Description | |
|---|---|---|---|
| void | InitRHI
(
FRHICommandListBase& RHICmdList |
FRenderResource Interface. | |
| void | ReleaseRHI () |
FRenderResource Interface. |