UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RayTracingInstanceMask.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "CoreMinimal.h"
5#include "RHIDefinitions.h"
6
7#if RHI_RAYTRACING
8
9// Forward declarations used in this header
10struct FMeshBatch;
15class FMaterial;
16enum EBlendMode : int;
17
19{
21 uint8 Mask = 0xFF;
22
24 uint8 bForceOpaque : 1 = false;
25
27 uint8 bDoubleSided : 1 = false;
28
30 uint8 bReverseCulling : 1 = false;
31
33 uint8 bAnySegmentsDecal : 1 = false;
34 uint8 bAllSegmentsDecal : 1 = false;
35
37 uint8 bAllSegmentsTranslucent : 1 = false;
38};
39
40
43enum class ERayTracingType : uint8
44{
48};
49
51RENDERER_API uint8 BlendModeToRayTracingInstanceMask(const EBlendMode BlendMode, bool bIsDitherMasked, bool bCastShadow, ERayTracingType RayTracingType);
52
53
54//-------------------------------------------------------
55// Build Instance mask and flags (if needed)
56//-------------------------------------------------------
57
58// Build mask and flags without modification of RayTracingInstance
60
61//-------------------------------------------------------
62// FRayTracingMeshCommand related mask setup and update
63//-------------------------------------------------------
65 const FMaterial& MaterialResource, ERayTracingType RayTracingType);
66
67#endif
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EBlendMode
Definition EngineTypes.h:245
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition MaterialShared.h:2058
Definition PrimitiveSceneProxy.h:296
Definition RayTracingMeshDrawCommands.h:69
Definition SceneView.h:2212
Definition PathTracingOutputInvalidateReason.h:6
Definition SceneManagement.h:73
int
Definition TestServer.py:515
Definition MeshBatch.h:371
Definition RayTracingInstance.h:17