FRHITexture

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/RHIResources.h

Include

#include "RHIResources.h"

Syntax

class FRHITexture : public FRHIResource

Constructors

Name Description

Public function

FRHITexture

(
    ERHIResourceType InResourceType,
    uint32 InNumMips,
    uint32 InNumSamples,
    EPixelFormat InFormat,
    ETextureCreateFlags InFlags,
    FLastRenderTimeContainer* InLa...,
    const FClearValueBinding& InClearV...
)

Initialization constructor.

Functions

Name Description

Public function Const

const FClear...

 

GetClearBinding()

Public function Const

FLinearColor

 

GetClearColor()

Public function Const

float

 

GetDepthClearValue()

Public function Const

void

 

GetDepthStencilClearValue

(
    float& OutDepth,
    uint32& OutStencil
)

Public function Const

ETextureCrea...

 

GetFlags()

Public function Const

EPixelFormat

 

GetFormat()

Public function

FLastRenderT...

 

GetLastRenderTimeContainer()

Returns the last render time container, or NULL if none were specified at creation.

Public function Virtual Const

FIntVector

 

GetMipDimensions

(
    uint8 MipIndex
)

Returns the dimensions (i.e. the actual number of texels in each dimension) of the specified mip.

Public function Const

FName

 

GetName()

Public function Virtual Const

void *

 

GetNativeResource()

Returns access to the platform-specific native resource pointer.

Public function Virtual Const

void *

 

GetNativeShaderResourceView()

Returns access to the platform-specific native shader resource view pointer.

Public function Const

uint32

 

GetNumMips()

Public function Const

uint32

 

GetNumSamples()

Public function Const

FIntVector

 

GetSizeXYZ()

Slower method to get Size X, Y & Z information. Prefer sub-classes' GetSizeX(), etc.

Public function Const

uint32

 

GetStencilClearValue()

Public function Virtual

FRHITexture2...

 

GetTexture2D()

Dynamic cast methods.

Public function Virtual

FRHITexture2...

 

GetTexture2DArray()

Public function Virtual

FRHITexture3...

 

GetTexture3D()

Public function Virtual

void *

 

GetTextureBaseRHI()

Returns access to the platform-specific RHI texture baseclass.

Public function Virtual

FRHITextureC...

 

GetTextureCube()

Public function Virtual

FRHITextureR...

 

GetTextureReference()

Public function Virtual

void

 

GetWriteMaskProperties

(
    void*& OutData,
    uint32& OutSize
)

Public function Const

bool

 

HasClearValue()

Public function Const

bool

 

IsMultisampled()

Public function

void

 

SetDefaultLastRenderTimeContainer()

Public function

void

 

SetLastRenderTime

(
    float InLastRenderTime
)

Sets the last time this texture was cached in a resource table.

Public function

void

 

SetName

(
    const FName& InName
)