Navigation
API > API/Runtime > API/Runtime/Engine
Stores all uniform expressions for a material generated from a material translation.
| Name | FUniformExpressionSet |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/MaterialShared.h |
| Include Path | #include "MaterialShared.h" |
Syntax
class FUniformExpressionSet
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FUniformExpressionSet() |
MaterialShared.h |
Classes
| Name | Remarks |
|---|---|
| FVTPackedStackAndLayerIndex |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| InternalBaseType | typename TGetBaseTypeHelper< FUniformExpressionSet >::Type | MaterialShared.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint32 AddDefaultParameterValue
(
const UE::Shader::FValue& Value |
MaterialShared.h | ||
void AddNumericParameterEvaluation
(
uint32 ParameterIndex, |
Adds a new direct parameter evaluation for parameter with specified index (returned by FindOrAddNumericParameter) BufferOffset is the location in the uniform buffer in which to evaluate the parameter (in multiple of float components). | MaterialShared.h | |
void AddTextureShaderFrequencyMask
(
EMaterialTextureParameterType Type, |
MaterialShared.h | ||
int32 AddVTLayer
(
int32 StackIndex, |
MaterialShared.h | ||
int32 AddVTStack
(
int32 InPreallocatedStackTextureIndex |
MaterialShared.h | ||
uint32 AllocateFromUniformBuffer
(
uint32 NumOfFloat4s |
Allocates the specified number of float4s in the uniform buffer and returns the index of the first newly allocated float4 in the buffer. | MaterialShared.h | |
void CountTextureCollections
(
uint32& BindlessCollections, |
MaterialShared.h | ||
TArray< FShaderParametersMetadata * > CreateBufferStructs
(
EShaderPrecisionModifier::Type ParameterPrecision |
MaterialShared.h | ||
FCompactUniformExpressionSet * CreateCompactUniformsVS() |
MaterialShared.h | ||
void EmptyCompactUniformsVS() |
MaterialShared.h | ||
void FillUniformBuffer
(
const FMaterialRenderContext& MaterialRenderContext, |
MaterialShared.h | ||
void FillUniformBuffer
(
const FMaterialRenderContext& MaterialRenderContext, |
MaterialShared.h | ||
int32 FindOrAddExternalTextureParameter
(
const FMaterialExternalTextureParameterInfo& Info |
MaterialShared.h | ||
int32 FindOrAddNumericParameter
(
EMaterialParameterType Type, |
MaterialShared.h | ||
int32 FindOrAddTextureCollectionParameter
(
const FMaterialTextureCollectionParameterInfo& Info |
MaterialShared.h | ||
int32 FindOrAddTextureParameter
(
EMaterialTextureParameterType Type, |
MaterialShared.h | ||
void FixupNumericParameterEvaluations
(
TConstArrayView< uint16 > Remap, |
Fixes up numeric parameter evaluation indices to offsets in the output buffer, using the given remapping table. | MaterialShared.h | |
| MaterialShared.h | |||
const FCompactUniformExpressionSet * GetCompactUniformsVS () |
MaterialShared.h | ||
const uint8 * GetDefaultParameterData
(
uint32 Offset |
MaterialShared.h | ||
UE::Shader::FValue GetDefaultParameterValue
(
EMaterialParameterType Type, |
MaterialShared.h | ||
void GetGameThreadTextureCollectionValue
(
int32 Index, |
MaterialShared.h | ||
void GetGameThreadTextureValue
(
EMaterialTextureParameterType Type, |
MaterialShared.h | ||
TConstArrayView< FMaterialCacheTagStack > GetMaterialCacheTagStacks() |
MaterialShared.h | ||
const FMaterialNumericParameterInfo & GetNumericParameter
(
uint32 Index |
MaterialShared.h | ||
int32 GetNumTextureCollections() |
MaterialShared.h | ||
int32 GetNumTextures
(
EMaterialTextureParameterType Type |
MaterialShared.h | ||
const UE::Shader::FPreshaderData & GetPreshaderData () |
MaterialShared.h | ||
| Returns the uniform preshader data. | MaterialShared.h | ||
uint32 GetReferencedTexture2DRHIHash
(
const FMaterialRenderContext& MaterialRenderContext |
Get a combined hash of all referenced Texture2D's underlying RHI textures, going through TextureReferences. Can be used to tell if any texture has gone through texture streaming mip changes recently. | MaterialShared.h | |
FString GetSummaryString() |
MaterialShared.h | ||
uint32 GetTemporaryBufferSize() |
Returns size of temporary preshader buffer in float4s. Temporary space should be added to the CPU side uniform buffer. | MaterialShared.h | |
const FMaterialTextureCollectionParameterInfo & GetTextureCollectionParameter
(
int32 Index |
MaterialShared.h | ||
void GetTextureCollectionValue
(
int32 Index, |
MaterialShared.h | ||
const FMaterialTextureParameterInfo & GetTextureParameter
(
EMaterialTextureParameterType Type, |
MaterialShared.h | ||
void GetTextureValue
(
EMaterialTextureParameterType Type, |
MaterialShared.h | ||
void GetTextureValue
(
int32 Index, |
MaterialShared.h | ||
void GetTextureValue
(
int32 Index, |
MaterialShared.h | ||
const FRHIUniformBufferLayoutInitializer & GetUniformBufferLayoutInitializer() |
MaterialShared.h | ||
uint32 GetUniformBufferSize() |
Returns size of uniform preshader buffer in float4s. | MaterialShared.h | |
const FMaterialVirtualTextureStack & GetVTStack
(
int32 Index |
MaterialShared.h | ||
TConstArrayView< FMaterialVirtualTextureStack > GetVTStacks() |
MaterialShared.h | ||
bool HasExternalTextureExpressions() |
MaterialShared.h | ||
INTERNAL_DECLARE_TYPE_LAYOUT_COMMON
(
FUniformExpressionSet |
MaterialShared.h | ||
INTERNAL_LAYOUT_INTERFACE_PREFIX_NonVirtual() |
MaterialShared.h | ||
bool IsEmpty() |
MaterialShared.h | ||
void SetParameterCollections
(
TConstArrayView< const class UMaterialParameterCollection* > Collections |
MaterialShared.h | ||
void SetVTLayer
(
int32 StackIndex, |
MaterialShared.h | ||
void WriteUniformPreshaderEntry
(
uint32 BufferOffset, |
Writes a new uniform preshader entry. | MaterialShared.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FVTPackedStackAndLayerIndex GetVTStackAndLayerIndex
(
int32 UniformExpressionIndex |
MaterialShared.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void CompactUniformBuffer
(
uint8* DestBuffer, |
MaterialShared.h | ||
static void InternalDestroy
(
void* Object, |
MaterialShared.h | ||
static void InternalInitializeBases
(
FTypeLayoutDesc& TypeDesc |
MaterialShared.h | ||
static FTypeLayoutDesc & StaticGetTypeLayout() |
MaterialShared.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator==
(
const FUniformExpressionSet& ReferenceSet |
MaterialShared.h |