engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
FExternalTextureRegistry类 参考

Stores a registry of external textures mapped to their GUIDs. 更多...

#include <ExternalTexture.h>

Public 成员函数

bool GetExternalTexture (const FMaterialRenderProxy *MaterialRenderProxy, const FGuid &InGuid, FTextureRHIRef &OutTextureRHI, FSamplerStateRHIRef &OutSamplerStateRHI)
 Get the external texture with the specified identifier. 更多...
 
bool GetExternalTextureCoordinateOffset (const FGuid &InGuid, FLinearColor &OutCoordinateOffset)
 Looks up an texture coordinate offset for given a given GUID. 更多...
 
bool GetExternalTextureCoordinateScaleRotation (const FGuid &InGuid, FLinearColor &OutCoordinateScaleRotation)
 Looks up an external texture's coordinate scale rotation. 更多...
 
void RegisterExternalTexture (const FGuid &InGuid, FTextureRHIRef &InTextureRHI, FSamplerStateRHIRef &InSamplerStateRHI, const FLinearColor &InCoordinateScaleRotation=FLinearColor(1, 0, 0, 1), const FLinearColor &InCoordinateOffset=FLinearColor(0, 0, 0, 0))
 Register an external texture, its sampler state and coordinate scale/bias against a GUID. 更多...
 
void RemoveMaterialRenderProxyReference (const FMaterialRenderProxy *MaterialRenderProxy)
 Removes the specified MaterialRenderProxy from the list of those using an external texture. 更多...
 
void UnregisterExternalTexture (const FGuid &InGuid)
 Removes an external texture given a GUID. 更多...
 

静态 Public 成员函数

static FExternalTextureRegistry & Get ()
 Get the registry singleton instance. 更多...
 

详细描述

Stores a registry of external textures mapped to their GUIDs.

成员函数说明

◆ Get()

static FExternalTextureRegistry & FExternalTextureRegistry::Get ( )
static

Get the registry singleton instance.

返回
External texture registry.

◆ GetExternalTexture()

bool FExternalTextureRegistry::GetExternalTexture ( const FMaterialRenderProxy *  MaterialRenderProxy,
const FGuid &  InGuid,
FTextureRHIRef &  OutTextureRHI,
FSamplerStateRHIRef &  OutSamplerStateRHI 
)

Get the external texture with the specified identifier.

参数
MaterialRenderProxyThe material render proxy that is using the texture (will be registered).
InGuidThe texture's unique identifier.
OutTextureRHIWill contain the external texture.
OutSamplerStateRHIWill contain the texture's sampler state.
返回
true on success, false if the identifier was not found.
参见
RegisterExternalTexture, UnregisterExternalTexture

◆ GetExternalTextureCoordinateOffset()

bool FExternalTextureRegistry::GetExternalTextureCoordinateOffset ( const FGuid &  InGuid,
FLinearColor &  OutCoordinateOffset 
)

Looks up an texture coordinate offset for given a given GUID.

参数
InGuidThe texture's unique identifier.
OutCoordinateOffsetWill contain the texture's coordinate offset (packed into color value).
返回
true on success, false if the identifier was not found.
参见
GetExternalTextureCoordinateScaleRotation

◆ GetExternalTextureCoordinateScaleRotation()

bool FExternalTextureRegistry::GetExternalTextureCoordinateScaleRotation ( const FGuid &  InGuid,
FLinearColor &  OutCoordinateScaleRotation 
)

Looks up an external texture's coordinate scale rotation.

参数
InGuidThe texture's unique identifier.
OutCoordinateScaleRotationWill contain the texture's coordinate scale and rotation (packed into color value).
返回
true on success, false if the identifier was not found.
参见
GetExternalTextureCoordinateOffset

◆ RegisterExternalTexture()

void FExternalTextureRegistry::RegisterExternalTexture ( const FGuid &  InGuid,
FTextureRHIRef &  InTextureRHI,
FSamplerStateRHIRef &  InSamplerStateRHI,
const FLinearColor &  InCoordinateScaleRotation = FLinearColor(1, 0, 0, 1),
const FLinearColor &  InCoordinateOffset = FLinearColor(0, 0, 0, 0) 
)

Register an external texture, its sampler state and coordinate scale/bias against a GUID.

参数
InGuidThe texture's unique identifier.
InTextureRHIThe texture.
InSamplerStateRHIThe texture's sampler state.
InCoordinateScaleRotationTexture coordinate scale and rotation parameters (optional; packed into color value).
InCoordinateOffsetTexture coordinate offset (optional; packed into color value).
参见
GetExternalTexture, UnregisterExternalTexture

◆ RemoveMaterialRenderProxyReference()

void FExternalTextureRegistry::RemoveMaterialRenderProxyReference ( const FMaterialRenderProxy *  MaterialRenderProxy)

Removes the specified MaterialRenderProxy from the list of those using an external texture.

参数
MaterialRenderProxyThe material render proxy to remove.
参见
GetExternalTexture, RegisterExternalTexture, UnregisterExternalTexture

◆ UnregisterExternalTexture()

void FExternalTextureRegistry::UnregisterExternalTexture ( const FGuid &  InGuid)

Removes an external texture given a GUID.

参数
InGuidThe unique identifier of the texture to unregister.
参见
RegisterExternalTexture

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