FPrimitiveUniformShaderParameters

The uniform shader parameters associated with a primitive.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/PrimitiveUniformShaderParameters.h

Include

#include "PrimitiveUniformShaderParameters.h"

Syntax

class FPrimitiveUniformShaderParameters

Remarks

The uniform shader parameters associated with a primitive. Note: Must match FPrimitiveSceneData in shaders. Note 2: Try to keep this 16 byte aligned. i.e |Matrix4x4|Vector3,float|Vector3,float|Vector4| NOT |Vector3,(waste padding)|Vector3,(waste padding)|Vector3. Or at least mark out padding if it can't be avoided.

Variables

Name Description

Public variable

TShaderParameterTypeInfo< FVector >::TAlignedType

 

ActorWorldPosition

Public variable

TShaderParameterTypeInfo< FVector4[FCustomPrimitiveData::NumCustomPrimitiveDataFloat4s] >::TAlignedType

 

CustomPrimitiveData

Public variable

TShaderParameterTypeInfo< float >::TAlignedType

 

DecalReceiverMask

Public variable

TShaderParameterTypeInfo< float >::TAlignedType

 

DrawsVelocity

Public variable

TShaderParameterTypeInfo< FVector4 >::TAlignedType

 

InvNonUniformScaleAndDeterminantSign

Public variable

TShaderParameterTypeInfo< uint32 >::TAlignedType

 

LightingChannelMask

Public variable

TShaderParameterTypeInfo< uint32 >::TAlignedType

 

LightmapDataIndex

Public variable

TShaderParameterTypeInfo< FVector >::TAlignedType

 

LocalObjectBoundsMax

Public variable

TShaderParameterTypeInfo< FVector >::TAlignedType

 

LocalObjectBoundsMin

Public variable

TShaderParameterTypeInfo< FMatrix >::TAlignedType

 

LocalToWorld

Public variable

TShaderParameterTypeInfo< float >::TAlignedType

 

LpvBiasMultiplier

Public variable

TShaderParameterTypeInfo< FVector4 >::TAlignedType

 

NonUniformScale

Public variable

TShaderParameterTypeInfo< FVector >::TAlignedType

 

ObjectBounds

Public variable

TShaderParameterTypeInfo< FVector4 >::TAlignedType

 

ObjectOrientation

Public variable

TShaderParameterTypeInfo< FVector4 >::TAlignedType

 

ObjectWorldPositionAndRadius

Public variable

TShaderParameterTypeInfo< uint32 >::TAlignedType

 

OutputVelocity

Public variable

TShaderParameterTypeInfo< float >::TAlignedType

 

PerObjectGBufferData

Public variable

TShaderParameterTypeInfo< FVector >::TAlignedType

 

PreSkinnedLocalBoundsMax

Public variable

TShaderParameterTypeInfo< FVector >::TAlignedType

 

PreSkinnedLocalBoundsMin

Public variable

TShaderParameterTypeInfo< FMatrix >::TAlignedType

 

PreviousLocalToWorld

Public variable

TShaderParameterTypeInfo< FMatrix >::TAlignedType

 

PreviousWorldToLocal

Public variable

TShaderParameterTypeInfo< int32 >::TAlignedType

 

SingleCaptureIndex

Public variable

TShaderParameterTypeInfo< float >::TAlignedType

 

UseSingleSampleShadowFromStationaryLights

Public variable

TShaderParameterTypeInfo< float >::TAlignedType

 

UseVolumetricLightmapShadowFromStationaryLights

Public variable

TShaderParameterTypeInfo< FMatrix >::TAlignedType

 

WorldToLocal

Constructors

Functions

Name Description

Public function Static

FUniformBufferRHIRef

 

CreateUniformBuffer

(
    const FPrimitiveUniformShaderParameters& InContents,
    EUniformBufferUsage InUsage
)

Classes

Name

Description

Public struct

FTypeInfo

Typedefs

Constants

Name

Description

StaticStructMetadata

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback