![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ExternalTexture.h>
Public Member Functions | |
| ENGINE_API 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)) |
| ENGINE_API void | UnregisterExternalTexture (const FGuid &InGuid) |
| ENGINE_API void | RemoveMaterialRenderProxyReference (const FMaterialRenderProxy *MaterialRenderProxy) |
| ENGINE_API bool | GetExternalTexture (const FMaterialRenderProxy *MaterialRenderProxy, const FGuid &InGuid, FTextureRHIRef &OutTextureRHI, FSamplerStateRHIRef &OutSamplerStateRHI) |
| ENGINE_API bool | GetExternalTextureCoordinateScaleRotation (const FGuid &InGuid, FLinearColor &OutCoordinateScaleRotation) |
| ENGINE_API bool | GetExternalTextureCoordinateOffset (const FGuid &InGuid, FLinearColor &OutCoordinateOffset) |
Static Public Member Functions | |
| static ENGINE_API FExternalTextureRegistry & | Get () |
Stores a registry of external textures mapped to their GUIDs.
|
static |
Get the registry singleton instance.
| bool FExternalTextureRegistry::GetExternalTexture | ( | const FMaterialRenderProxy * | MaterialRenderProxy, |
| const FGuid & | InGuid, | ||
| FTextureRHIRef & | OutTextureRHI, | ||
| FSamplerStateRHIRef & | OutSamplerStateRHI | ||
| ) |
Get the external texture with the specified identifier.
| MaterialRenderProxy | The material render proxy that is using the texture (will be registered). |
| InGuid | The texture's unique identifier. |
| OutTextureRHI | Will contain the external texture. |
| OutSamplerStateRHI | Will contain the texture's sampler state. |
| bool FExternalTextureRegistry::GetExternalTextureCoordinateOffset | ( | const FGuid & | InGuid, |
| FLinearColor & | OutCoordinateOffset | ||
| ) |
Looks up an texture coordinate offset for given a given GUID.
| InGuid | The texture's unique identifier. |
| OutCoordinateOffset | Will contain the texture's coordinate offset (packed into color value). |
| bool FExternalTextureRegistry::GetExternalTextureCoordinateScaleRotation | ( | const FGuid & | InGuid, |
| FLinearColor & | OutCoordinateScaleRotation | ||
| ) |
Looks up an external texture's coordinate scale rotation.
| InGuid | The texture's unique identifier. |
| OutCoordinateScaleRotation | Will contain the texture's coordinate scale and rotation (packed into color value). |
| 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.
| InGuid | The texture's unique identifier. |
| InTextureRHI | The texture. |
| InSamplerStateRHI | The texture's sampler state. |
| InCoordinateScaleRotation | Texture coordinate scale and rotation parameters (optional; packed into color value). |
| InCoordinateOffset | Texture coordinate offset (optional; packed into color value). |
| void FExternalTextureRegistry::RemoveMaterialRenderProxyReference | ( | const FMaterialRenderProxy * | MaterialRenderProxy | ) |
Removes the specified MaterialRenderProxy from the list of those using an external texture.
| MaterialRenderProxy | The material render proxy to remove. |
Removes an external texture given a GUID.
| InGuid | The unique identifier of the texture to unregister. |