Navigation
API > API/Runtime > API/Runtime/RHI
References
| Module | RHI |
| Header | /Engine/Source/Runtime/RHI/Public/RHIResources.h |
| Include | #include "RHIResources.h" |
Syntax
struct FRayTracingSceneInitializer2
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< uint32 > | BaseInstancePrefixSum | Exclusive prefix sum of `Instance.NumTransforms_ for all instances in this scene. Used to emulate SV_InstanceID in hit shaders. | |
| FName | DebugName | ||
| ERayTracingSceneLifetime | Lifetime | Defines whether data in this scene should persist between frames. | |
| uint32 | NumCallableShaderSlots | Defines how many different callable shaders with unique resource bindings can be bound to this scene. | |
| uint32 | NumMissShaderSlots | At least one miss shader must be present in a ray tracing scene. | |
| TArray< uint32 > | NumNativeInstancesPerLayer | Total flattened number of ray tracing geometry instances (a single FRayTracingGeometryInstance may represent many) per layer. | |
| uint32 | NumTotalSegments | ||
| TArray< FRHIRayTracingGeometry * > | PerInstanceGeometries | One entry per instance. | |
| TArray< TRefCountPtr< FRHIRayTracingGeometry > > | ReferencedGeometries | Unique list of geometries referenced by all instances in this scene. | |
| TArray< uint32 > | SegmentPrefixSum | Exclusive prefix sum of instance geometry segments is used to calculate SBT record address from instance and segment indices. | |
| uint32 | ShaderSlotsPerGeometrySegment | This value controls how many elements will be allocated in the shader binding table per geometry segment. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | |||
Operators
| Type | Name | Description | |
|---|---|---|---|
| FRayTracingSceneInitializer2 & |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32 | NumNativeInstances | Use NumNativeInstancesPerLayer instead. |