FRayTracingGeometryInstance

Windows
MacOS
Linux

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/DynamicRHI.h

Include

#include "DynamicRHI.h"

Syntax

struct FRayTracingGeometryInstance

Variables

Name Description

Public variable

bool

 

bDoubleSided

Disabling this will allow ray hits to be registered for front and back faces.

Public variable

bool

 

bForceOpaque

No any-hit shaders will be invoked for this geometry instance (only closest hit)

Public variable

FRHIRayTracingG...

 

GeometryRHI

Public variable

FShaderResource...

 

GPUTransformsSRV

Buffer that stores GPU transforms.

Public variable

uint8

 

Mask

Mask that will be tested against one provided to TraceRay() in shader code.

Public variable

uint32

 

NumTransforms

Transforms count. When GPU transforms are used it is a conservative count.

Public variable

TArray< FMatrix...

 

Transforms

A physical FRayTracingGeometryInstance may be duplicated many times in the scene with different transforms and user data.

Public variable

TArray< uint32,...

 

UserData

Each geometry copy can receive a user-provided integer, which can be used to retrieve extra shader parameters or customize appearance.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss