FSlateRenderTargetRHI

Encapsulates a render target for use by a Slate rendering implementation

Windows
MacOS
Linux

Inheritance Hierarchy

TSlateTexture

FRenderResource

FSlateRenderTargetRHI

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Slate/SlateTextures.h

Include

#include "Slate/SlateTextures.h"

Syntax

class FSlateRenderTargetRHI :
    public TSlateTexture< FTexture2DRHIRef >,
    public FRenderResource

Remarks

Encapsulates a render target for use by a Slate rendering implementation

Constructors

Name Description

Public function

FSlateRenderTargetRHI

(
    FTexture2DRHIRef InRenderTargetText...,
    uint32 InWidth,
    uint32 InHeight
)

Functions

Name Description

Public function Const

FTexture2DRH...

 

GetRHIRef()

Public function

void

 

SetRHIRef

(
    FTexture2DRHIRef InRenderTargetText...,
    uint32 InWidth,
    uint32 InHeight
)

Sets the RHI Ref to use. Useful for reusing this class for multiple render targets

Overridden from FSlateShaderResource

Name Description

Public function Virtual Const

uint32

 

GetHeight()

Gets the height of the resource.

Public function Virtual Const

uint32

 

GetWidth()

Gets the width of the resource.

Overridden from FRenderResource

Name Description

Public function Virtual

void

 

InitDynamicRHI()

Initializes the dynamic RHI resource and/or RHI render target used by this resource.

Public function Virtual

void

 

ReleaseDynamicRHI()

Releases all dynamic RHI data

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback