UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StereoRenderUtils.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6
8
10{
11
12/*
13 * Detect the single-draw stereo shader variant, in order to support usage across different platforms
14 */
16{
17public:
23
28
33 inline bool IsInstancedStereoEnabled() const { return bInstancedStereoEnabled; }
34
40 inline bool IsMobileMultiViewEnabled() const { return bMobileMultiViewEnabled; };
41
46 inline bool IsInstancedMultiViewportEnabled() const { return bInstancedMultiViewportEnabled; };
47
52 UE_DEPRECATED(5.6, "The MMV fallback path is deprecated and will be disabled via UE_SUPPORT_MMV_FALLBACK by default even if this function returns true.")
53 inline bool IsMobileMultiViewFallbackEnabled() const { return bMobileMultiViewFallback; };
54
55private:
56 bool bInstancedStereoEnabled : 1;
57 bool bMobileMultiViewEnabled : 1;
58 bool bInstancedMultiViewportEnabled : 1;
59
60 bool bInstancedStereoNative : 1;
61 bool bMobileMultiViewNative : 1;
62 bool bMobileMultiViewFallback : 1;
63
64};
65
67
69
70} // namespace UE::StereoRenderUtils
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EShaderPlatform
Definition RHIShaderPlatform.h:11
uint16_t uint16
Definition binka_ue_file_header.h:7
Definition StereoRenderUtils.h:16
bool IsMobileMultiViewFallbackEnabled() const
Definition StereoRenderUtils.h:53
bool IsInstancedStereoEnabled() const
Definition StereoRenderUtils.h:33
bool IsMobileMultiViewEnabled() const
Definition StereoRenderUtils.h:40
bool IsInstancedMultiViewportEnabled() const
Definition StereoRenderUtils.h:46
RENDERCORE_API FStereoShaderAspects()
Definition StereoRenderUtils.cpp:144
Definition StereoRenderUtils.cpp:45
RENDERCORE_API void VerifyISRConfig(const UE::StereoRenderUtils::FStereoShaderAspects &Aspects, EShaderPlatform ShaderPlatform)
Definition StereoRenderUtils.cpp:171
RENDERCORE_API void LogISRInit(const UE::StereoRenderUtils::FStereoShaderAspects &Aspects)
Definition StereoRenderUtils.cpp:153