Navigation
API > API/Runtime > API/Runtime/Engine
What texture gather mode to use in a texture read instruction (none indicates a sample).
| Name | MIR::ETextureReadMode |
| Type | enum |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialIR.h |
| Include Path | #include "Materials/MaterialIR.h" |
Syntax
namespace MIR
{
enum ETextureReadMode
{
GatherRed,
GatherGreen,
GatherBlue,
GatherAlpha,
MipAuto,
MipLevel,
MipBias,
Derivatives,
}
}
Values
| Name | Remarks |
|---|---|
| GatherRed | Gather the four red components in a 2x2 pixel block. |
| GatherGreen | Gather the four green components in a 2x2 pixel block. |
| GatherBlue | Gather the four blue components in a 2x2 pixel block. |
| GatherAlpha | Gather the four alpha components in a 2x2 pixel block. |
| MipAuto | Texture gather with automatically calculated mip level. |
| MipLevel | Texture gather with user specified mip level. |
| MipBias | Texture gather with automatically calculated mip level plus user specified bias. |
| Derivatives | Texture gather using automatically caluclated mip level based on user provided partial derivatives. |