Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionRuntimeVirtualTextureSample
- UMaterialExpressionRuntimeVirtualTextureSampleParameter
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionRuntimeVirtualTextureSample.h |
Include | #include "Materials/MaterialExpressionRuntimeVirtualTextureSample.h" |
Syntax
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. |
![]() |
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. |
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() can ever return a valid pointer. | |
![]() ![]() |
int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression |
![]() ![]() ![]() |
void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). |
![]() ![]() ![]() |
UObject * | Callback to get any texture reference 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. |