Navigation
API > API/Runtime > API/Runtime/Engine
Material expression for sampling from a runtime virtual texture.
| Name | UMaterialExpressionSparseVolumeTextureSample |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionSparseVolumeTextureSample.h |
| Include Path | #include "Materials/MaterialExpressionSparseVolumeTextureSample.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object, MinimalAPI)
class UMaterialExpressionSparseVolumeTextureSample : public UMaterialExpressionSparseVolumeTextureBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMaterialExpression → UMaterialExpressionSparseVolumeTextureBase → UMaterialExpressionSparseVolumeTextureSample
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMaterialExpressionSparseVolumeTextureSample
(
const FObjectInitializer& ObjectInitializer |
Materials/MaterialExpressionSparseVolumeTextureSample.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ConstMipValue | int32 | Only used if MipValue is not hooked up | Materials/MaterialExpressionSparseVolumeTextureSample.h |
|
| Coordinates | FExpressionInput | 3D texture coordinate used to sample the sparse volume texture. | Materials/MaterialExpressionSparseVolumeTextureSample.h |
|
| CoordinatesDX | FExpressionInput | Enabled only if MipValueMode == TMVM_Derivative | Materials/MaterialExpressionSparseVolumeTextureSample.h |
|
| CoordinatesDY | FExpressionInput | Enabled only if MipValueMode == TMVM_Derivative | Materials/MaterialExpressionSparseVolumeTextureSample.h |
|
| MipValue | FExpressionInput | Meaning depends on MipValueMode, a single unit is one mip level | Materials/MaterialExpressionSparseVolumeTextureSample.h |
|
| MipValueMode | TEnumAsByte< ETextureMipValueMode > | Defines how the MipValue property is applied to the texture lookup | Materials/MaterialExpressionSparseVolumeTextureSample.h |
|
| SamplerSource | TEnumAsByte< ESamplerSourceMode > | Controls where the sampler for this texture lookup will come from. | Materials/MaterialExpressionSparseVolumeTextureSample.h |
|
| TextureObject | FExpressionInput | Materials/MaterialExpressionSparseVolumeTextureSample.h |
|
Functions
Public
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Materials/MaterialExpressionSparseVolumeTextureSample.h |
Protected
Overridden from UMaterialExpression
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | Materials/MaterialExpressionSparseVolumeTextureSample.h | |
| Returns the text to display on the material expression (in the material editor). | Materials/MaterialExpressionSparseVolumeTextureSample.h | ||
virtual FExpressionInput * GetInput
(
int32 InputIndex |
Returns the input at index InputIndex if valid, nullptr otherwise. | Materials/MaterialExpressionSparseVolumeTextureSample.h | |
virtual FName GetInputName
(
int32 InputIndex |
Materials/MaterialExpressionSparseVolumeTextureSample.h | ||
virtual TArrayView< FExpressionInput * > GetInputsView() |
Materials/MaterialExpressionSparseVolumeTextureSample.h | ||
virtual EMaterialValueType GetInputValueType
(
int32 InputIndex |
Materials/MaterialExpressionSparseVolumeTextureSample.h | ||
virtual EMaterialValueType GetOutputValueType
(
int32 OutputIndex |
Materials/MaterialExpressionSparseVolumeTextureSample.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanEditChange
(
const FProperty* InProperty |
Materials/MaterialExpressionSparseVolumeTextureSample.h | ||
virtual void PostLoad() |
Materials/MaterialExpressionSparseVolumeTextureSample.h |