Navigation
API > API/Runtime > API/Runtime/Engine
This instruction performs texture read operaation (sample or gather).
| Name | FTextureRead |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialIR.h |
| Include Path | #include "Materials/MaterialIR.h" |
Syntax
struct FTextureRead : public MIR::TInstruction< VK_TextureRead, 6 >
Inheritance Hierarchy
- FValue → FInstruction → TInstruction → FTextureRead
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bUseAnisoSampler | bool | Used for VTs whether anisotropic filtering is used or not. | Materials/MaterialIR.h | |
| MipValue | FValue * | Optional. The mip index to sample, if any provided. | Materials/MaterialIR.h | |
| Mode | ETextureReadMode | The mip value mode to use for sampling. | Materials/MaterialIR.h | |
| SamplerSourceMode | ESamplerSourceMode | The sampler source mode to use for sampling. | Materials/MaterialIR.h | |
| SamplerType | EMaterialSamplerType | The sampler type to use for sampling. | Materials/MaterialIR.h | |
| TexCoord | FValue * | The texture coordinate at which to sample. | Materials/MaterialIR.h | |
| TexCoordDdx | FValue * | Optional. The analytical partial derivative of the coordinates along the X axis. | Materials/MaterialIR.h | |
| TexCoordDdy | FValue * | Optional. The analytical partial derivative of the coordinates along the Y axis. | Materials/MaterialIR.h | |
| TextureObject | FValue * | The texture object to sample. Can be FTextureObject or FUniformParameter. | Materials/MaterialIR.h | |
| VTPageTable | FValue * | Only required for virtual textures. Must point to FVTPageTableRead value. | Materials/MaterialIR.h |