Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionRuntimeVirtualTextureSample
- UMaterialExpressionRuntimeVirtualTextureSampleParameter
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionRuntimeVirtualTextureSample.h |
Include | #include "Materials/MaterialExpressionRuntimeVirtualTextureSample.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object, MinimalAPI)
class UMaterialExpressionRuntimeVirtualTextureSample : public UMaterialExpression
Remarks
Material expression for sampling from a runtime virtual texture.
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | bAdaptive | Enable sparse adaptive page tables. |
![]() ![]() ![]() |
bool | bEnableFeedback | Enable virtual texture feedback. |
![]() ![]() ![]() |
bool | bSinglePhysicalSpace | Enable page table channel packing. |
![]() ![]() ![]() |
FExpressionInput | Coordinates | Optional UV coordinates input if we want to override standard world position based coordinates. |
![]() ![]() ![]() |
FExpressionInput | DDX | Derivative over the X axis. |
![]() ![]() ![]() |
FExpressionInput | DDY | Derivative over the Y axis. |
![]() ![]() ![]() |
ERuntimeVirtualTextureMaterialType | MaterialType | How to interpret the virtual texture contents. |
![]() ![]() ![]() |
FExpressionInput | MipValue | Meaning depends on MipValueMode. A single unit is one mip level. |
![]() ![]() ![]() |
TEnumAsByte< enum ERuntimeVirtualTextureMipValueMode > | MipValueMode | Defines how the mip level is calculated for the virtual texture lookup. |
![]() ![]() ![]() |
TEnumAsByte< enum ERuntimeVirtualTextureTextureAddressMode > | TextureAddressMode | Defines the texture addressing mode. |
![]() ![]() ![]() |
TObjectPtr< class URuntimeVirtualTexture > | VirtualTexture | The virtual texture object to sample. |
![]() ![]() ![]() |
FExpressionInput | WorldPosition | Optional world position input to override the default world position. |
![]() ![]() ![]() |
EPositionOrigin | WorldPositionOriginType | Defines the reference space for the WorldPosition input. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UMaterialExpressionRuntimeVirtualTextureSample
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | InitOutputs () |
Initialize the output pins. |
![]() |
bool | Init settings that affect shader compilation and need to match the current VirtualTexture |
Overridden from UMaterialExpression
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | Returns true if GetReferencedTexture() / GetReferencedTextures() can ever return a valid pointer(s). | |
![]() ![]() |
int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression |
![]() ![]() ![]() |
bool | GenerateHLSLExpression
(
FMaterialHLSLGenerator& Generator, |
|
![]() ![]() ![]() |
void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). |
![]() ![]() |
FExpressionInput * | Returns the input at index InputIndex if valid, nullptr otherwise. | |
![]() ![]() ![]() |
FName | GetInputName
(
int32 InputIndex |
|
![]() ![]() ![]() |
UObject * | To get any texture references this expression emits. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | CanEditChange
(
const FProperty* InProperty |
Called by the editor to query whether a property of this object is allowed to be modified. |
![]() ![]() |
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |
![]() ![]() |
void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |