engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 属性 | 所有成员列表
FSlateTexture2DRHIRef类 参考

Encapsulates a Texture2DRHIRef for use by a Slate rendering implementation
更多...

#include <SlateTextures.h>

+ 类 FSlateTexture2DRHIRef 继承关系图:

Public 成员函数

virtual void Cleanup () override
 Deferred or Immediate cleanup of this data depending on what is required.
 
void ClearTextureData ()
 Clears texture data being used. 更多...
 
virtual uint32 GetHeight () const override
 Gets the height of the resource. 更多...
 
EPixelFormat GetPixelFormat () const
 Returns the pixel format of this texture
 
virtual FRenderResource * GetRenderResource () override
 Gets the interface to the underlying render resource (may not always be used) 更多...
 
virtual FSlateShaderResource * GetSlateResource () override
 Gets the interface to the underlying platform independent texture 更多...
 
virtual uint32 GetWidth () const override
 Gets the width of the resource. 更多...
 
virtual void InitDynamicRHI () override
 FRenderResource Interface. 更多...
 
bool IsValid () const
 
virtual void ReleaseDynamicRHI () override
 FRenderResource Interface. 更多...
 
void Resize (uint32 Width, uint32 Height)
 Resize the texture. 更多...
 
virtual void ResizeTexture (uint32 Width, uint32 Height) override
 Resize the texture. 更多...
 
void SetRHIRef (FTexture2DRHIRef InRenderTargetTexture, uint32 InWidth, uint32 InHeight)
 Sets the RHI Ref to use.
 
void SetTextureData (FSlateTextureDataPtr NewTextureData)
 Sets the bulk data for this texture. 更多...
 
void SetTextureData (FSlateTextureDataPtr NewTextureData, EPixelFormat InPixelFormat, ETextureCreateFlags InTexCreateFlags)
 Sets the bulk data for this texture and the format of the rendering resource Note: Does not reinitialize the resource. 更多...
 
virtual void UpdateTexture (const TArray< uint8 > &Bytes) override
 Updates the texture contents via a byte array. 更多...
 
virtual void UpdateTextureThreadSafe (const TArray< uint8 > &Bytes) override
 Updates the texture contents via a byte array making a copy first for thread safety 更多...
 
virtual void UpdateTextureThreadSafeRaw (uint32 Width, uint32 Height, const void *Buffer, const FIntRect &Dirty) override
 Update the texture from a raw byte buffer. 更多...
 
virtual void UpdateTextureThreadSafeWithTextureData (FSlateTextureData *BulkData) override
 Update the texture from a provided FSlateTextureData buffer, also transferring ownership of the texture 更多...
 
- Public 成员函数 继承自 TSlateTexture< FTexture2DRHIRef >
FTexture2DRHIRef & GetTypedResource ()
 Gets the resource used by the shader. 更多...
 
 TSlateTexture ()
 Default constructor.
 
 TSlateTexture (FTexture2DRHIRef &InShaderResource)
 Creates and initializes a new instance. 更多...
 
- Public 成员函数 继承自 FSlateShaderResource
virtual uint32 GetHeight () const =0
 Gets the height of the resource. 更多...
 
virtual ESlateShaderResource::Type GetType () const =0
 Gets the type of the resource. 更多...
 
virtual uint32 GetWidth () const =0
 Gets the width of the resource. 更多...
 
virtual ~FSlateShaderResource ()
 Virtual destructor.
 
- Public 成员函数 继承自 FSlateUpdatableTexture
virtual void Cleanup ()=0
 Deferred or Immediate cleanup of this data depending on what is required.
 
virtual FRenderResource * GetRenderResource ()
 Gets the interface to the underlying render resource (may not always be used) 更多...
 
virtual FSlateShaderResource * GetSlateResource ()=0
 Gets the interface to the underlying platform independent texture 更多...
 
virtual void ResizeTexture (uint32 Width, uint32 Height)=0
 Resize the texture. 更多...
 
virtual void UpdateTexture (const TArray< uint8 > &Bytes)=0
 Updates the texture contents via a byte array. 更多...
 
virtual void UpdateTextureThreadSafe (const TArray< uint8 > &Bytes)=0
 Updates the texture contents via a byte array making a copy first for thread safety 更多...
 
virtual void UpdateTextureThreadSafeRaw (uint32 Width, uint32 Height, const void *Buffer, const FIntRect &Dirty=FIntRect())=0
 Update the texture from a raw byte buffer. 更多...
 
virtual void UpdateTextureThreadSafeWithTextureData (FSlateTextureData *TextureData)=0
 Update the texture from a provided FSlateTextureData buffer, also transferring ownership of the texture 更多...
 
virtual ~FSlateUpdatableTexture ()
 Virtual destructor
 
- Public 成员函数 继承自 FRenderResource
 FRenderResource ()
 Default constructor.
 
 FRenderResource (ERHIFeatureLevel::Type InFeatureLevel)
 Constructor when we know what feature level this resource should support
 
virtual FString GetFriendlyName () const
 
virtual void InitDynamicRHI ()
 Initializes the dynamic RHI resource and/or RHI render target used by this resource. 更多...
 
virtual void InitResource ()
 Initializes the resource. 更多...
 
virtual void InitRHI ()
 Initializes the RHI resources used by this resource. 更多...
 
virtual void ReleaseDynamicRHI ()
 Releases the dynamic RHI resource and/or RHI render target resources used by this resource. 更多...
 
virtual void ReleaseResource ()
 Prepares the resource for deletion. 更多...
 
virtual void ReleaseRHI ()
 Releases the RHI resources used by this resource. 更多...
 
void UpdateRHI ()
 If the resource's RHI resources have been initialized, then release and reinitialize it. 更多...
 
virtual ~FRenderResource ()
 Destructor used to catch unreleased resources.
 

Protected 属性

uint32 Height
 Height of this texture
 
uint32 Width
 Width of this texture
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 FRenderResource
static void InitPreRHIResources ()
 Initialize all resources initialized before the RHI was initialized
 

详细描述

Encapsulates a Texture2DRHIRef for use by a Slate rendering implementation

成员函数说明

◆ ClearTextureData()

void FSlateTexture2DRHIRef::ClearTextureData ( )

Clears texture data being used.

Can only be accessed on the render thread

◆ GetHeight()

virtual uint32 FSlateTexture2DRHIRef::GetHeight ( ) const
inlineoverridevirtual

Gets the height of the resource.

返回
Resource height(in pixels).

实现了 FSlateShaderResource.

◆ GetRenderResource()

virtual FRenderResource * FSlateTexture2DRHIRef::GetRenderResource ( )
inlineoverridevirtual

Gets the interface to the underlying render resource (may not always be used)

返回
FRenderResource* pointer to the render resource

重载 FSlateUpdatableTexture .

◆ GetSlateResource()

virtual FSlateShaderResource * FSlateTexture2DRHIRef::GetSlateResource ( )
inlineoverridevirtual

Gets the interface to the underlying platform independent texture

返回
FSlateShaderResource* pointer to the shader resource

实现了 FSlateUpdatableTexture.

◆ GetWidth()

virtual uint32 FSlateTexture2DRHIRef::GetWidth ( ) const
inlineoverridevirtual

Gets the width of the resource.

返回
Resource width (in pixels).

实现了 FSlateShaderResource.

◆ InitDynamicRHI()

virtual void FSlateTexture2DRHIRef::InitDynamicRHI ( )
overridevirtual

FRenderResource Interface.

Called when render resources need to be initialized

重载 FRenderResource .

◆ IsValid()

bool FSlateTexture2DRHIRef::IsValid ( ) const
inline
返回
true if the texture is valid

◆ ReleaseDynamicRHI()

virtual void FSlateTexture2DRHIRef::ReleaseDynamicRHI ( )
overridevirtual

FRenderResource Interface.

Called when render resources need to be released

重载 FRenderResource .

◆ Resize()

void FSlateTexture2DRHIRef::Resize ( uint32  Width,
uint32  Height 
)

Resize the texture.

Can only be called on the render thread

◆ ResizeTexture()

virtual void FSlateTexture2DRHIRef::ResizeTexture ( uint32  Width,
uint32  Height 
)
overridevirtual

Resize the texture.

参数
WidthNew texture width
HeightNew texture height

实现了 FSlateUpdatableTexture.

◆ SetTextureData() [1/2]

void FSlateTexture2DRHIRef::SetTextureData ( FSlateTextureDataPtr  NewTextureData)

Sets the bulk data for this texture.

Note: Does not reinitialize the resource, Can only be used on the render thread

参数
NewTextureDataThe new bulk data

◆ SetTextureData() [2/2]

void FSlateTexture2DRHIRef::SetTextureData ( FSlateTextureDataPtr  NewTextureData,
EPixelFormat  InPixelFormat,
ETextureCreateFlags  InTexCreateFlags 
)

Sets the bulk data for this texture and the format of the rendering resource Note: Does not reinitialize the resource.

Can only be used on the render thread

参数
NewTextureDataThe new texture data
InPixelFormatThe format of the texture data
InTexCreateFlagsFlags for creating the rendering resource

◆ UpdateTexture()

virtual void FSlateTexture2DRHIRef::UpdateTexture ( const TArray< uint8 > &  Bytes)
overridevirtual

Updates the texture contents via a byte array.

Note: This method is not thread safe so make sure you do not use the Bytes data on another after it is passed in

参数
BytesArray of texture data

实现了 FSlateUpdatableTexture.

◆ UpdateTextureThreadSafe()

virtual void FSlateTexture2DRHIRef::UpdateTextureThreadSafe ( const TArray< uint8 > &  Bytes)
overridevirtual

Updates the texture contents via a byte array making a copy first for thread safety

参数
BytesArray of texture data

实现了 FSlateUpdatableTexture.

◆ UpdateTextureThreadSafeRaw()

virtual void FSlateTexture2DRHIRef::UpdateTextureThreadSafeRaw ( uint32  Width,
uint32  Height,
const void *  Buffer,
const FIntRect &  Dirty 
)
overridevirtual

Update the texture from a raw byte buffer.

Should only be used when integrating with third party APIs that provide a raw pointer to texture data. This method does a copy of the buffer for thread safety. Will resize the texture if the passed in width and height is different from the current size. The passed in size must correspond to the size of the buffer and the data must be valid for the entire texture, even when passing in a Dirty rectangle, as the implementation may chose to copy a larger area than specified. The RHI renderer currently ignores the Dirty argument completely.

参数
WidthNew texture width
HeightNew texture height
BufferA void pointer to a byte buffer.
DirtyAn optional hint of the area to update. An empty rectangle means that the entire texture should be updated.

实现了 FSlateUpdatableTexture.

◆ UpdateTextureThreadSafeWithTextureData()

virtual void FSlateTexture2DRHIRef::UpdateTextureThreadSafeWithTextureData ( FSlateTextureData *  TextureData)
overridevirtual

Update the texture from a provided FSlateTextureData buffer, also transferring ownership of the texture

参数
TextureDataA pointer to the provided FSlateTextureData.

NOTE: This function transfers ownership of the FSlateTextureData object. It will be deleted once the texture is used

实现了 FSlateUpdatableTexture.


该类的文档由以下文件生成: