Skip to content

Commit fc1ee16

Browse files
TElsherifEvergreen
authored andcommitted
[content automatically redacted] touching PlatformDependent folder
1 parent e02f0b8 commit fc1ee16

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Packages/com.unity.render-pipelines.universal/Runtime/UniversalRenderPipeline.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
using UnityEngine.Profiling;
1414
using static UnityEngine.Camera;
1515

16+
#if ENABLE_MULTI_WINDOWING && PLATFORM_SUPPORTS_PER_WINDOW_TRANSPARENCY
17+
using UnityEngine.Windowing;
18+
#endif
19+
1620
namespace UnityEngine.Rendering.Universal
1721
{
1822
/// <summary>
@@ -1373,7 +1377,11 @@ static UniversalCameraData CreateCameraData(ContextContainer frameData, Camera c
13731377
if (renderer is UniversalRenderer { onTileValidation: true } && UniversalRenderer.PlatformRequiresExplicitMsaaResolve())
13741378
msaaSamples = 1;
13751379

1380+
#if ENABLE_MULTI_WINDOWING && PLATFORM_SUPPORTS_PER_WINDOW_TRANSPARENCY && !UNITY_EDITOR
1381+
bool needsAlphaChannel = GameWindowManager.IsGameWindowTransparent(cameraData.camera.targetDisplay);
1382+
#else
13761383
bool needsAlphaChannel = Graphics.preserveFramebufferAlpha;
1384+
#endif
13771385

13781386
cameraData.hdrColorBufferPrecision = asset ? asset.hdrColorBufferPrecision : HDRColorBufferPrecision._32Bits;
13791387
cameraData.cameraTargetDescriptor = CreateRenderTextureDescriptor(camera, cameraData,

0 commit comments

Comments
 (0)