Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterialExpressionTextureBase
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool VerifySamplerType
(
const FString& TexturePathName, |
Materials/MaterialExpressionTextureBase.h | ||
static bool VerifySamplerType
(
EShaderPlatform ShaderPlatform, |
Verify that the texture and sampler type. Generates a compiler waring if they do not. | Materials/MaterialExpressionTextureBase.h |
VerifySamplerType(const FString &, EMaterialSamplerType, bool, EMaterialSamplerType, FString &)
| Name | VerifySamplerType |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionTextureBase.h |
| Include Path | #include "Materials/MaterialExpressionTextureBase.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialExpressions.cpp |
static bool VerifySamplerType
(
const FString & TexturePathName,
EMaterialSamplerType CorrectSamplerType,
bool bSRGB,
EMaterialSamplerType SamplerType,
FString & OutErrorMessage
)
VerifySamplerType(EShaderPlatform, const ITargetPlatform , const UTexture , EMaterialSamplerType, FString &)
Description
Verify that the texture and sampler type. Generates a compiler waring if they do not.
| Name | VerifySamplerType |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionTextureBase.h |
| Include Path | #include "Materials/MaterialExpressionTextureBase.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialExpressions.cpp |
static bool VerifySamplerType
(
EShaderPlatform ShaderPlatform,
const ITargetPlatform * TargetPlatform,
const UTexture * Texture,
EMaterialSamplerType SamplerType,
FString & OutErrorMessage
)
Parameters
| Name | Remarks |
|---|---|
| Texture | The texture to verify. A nullptr texture is considered valid! |
| SamplerType | The sampler type to verify. |
| OutErrorMessage | If 'false' is returned, will contain a message describing the error |