Navigation
API > API/Runtime > API/Runtime/RHI
High level descriptor of one or more instances of a mesh in a ray tracing scene. All instances covered by this descriptor will share shader bindings, but may have different transforms and user data.
| Name | FRayTracingGeometryInstance |
| Type | struct |
| Header File | /Engine/Source/Runtime/RHI/Public/RHIResources.h |
| Include Path | #include "RHIResources.h" |
Syntax
struct FRayTracingGeometryInstance
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bApplyLocalBoundsTransform | bool | Whether local bounds scale and center translation should be applied to the instance transform. | RHIResources.h | |
| BaseInstanceSceneDataOffset | int32 | Offsets into the scene's instance scene data buffer used to get instance transforms from GPUScene If BaseInstanceSceneDataOffset != -1, instances are assumed to be continuous. | RHIResources.h | |
| bIncrementUserDataPerInstance | bool | Whether to increment UserData for each instance of this geometry (only applied when using DefaultUserData) | RHIResources.h | |
| bUsesLightingChannels | bool | RHIResources.h | ||
| DefaultUserData | uint32 | Each geometry copy can receive a user-provided integer, which can be used to retrieve extra shader parameters or customize appearance. | RHIResources.h | |
| Flags | ERayTracingInstanceFlags | Flags to control triangle back face culling, whether to allow any-hit shaders, etc. | RHIResources.h | |
| GeometryRHI | FRHIRayTracingGeometry * | RHIResources.h | ||
| InstanceContributionToHitGroupIndex | int32 | RHIResources.h | ||
| InstanceSceneDataOffsets | TArrayView< const uint32 > | RHIResources.h | ||
| Mask | uint8 | Mask that will be tested against one provided to TraceRay() in shader code. | RHIResources.h | |
| NumTransforms | uint32 | Conservative number of instances. | RHIResources.h | |
| Transforms | TArrayView< const FMatrix > | A single physical mesh may be duplicated many times in the scene with different transforms and user data. | RHIResources.h | |
| UserData | TArrayView< const uint32 > | RHIResources.h |