Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 3574ae6

Browse files
committed
Resolved depth is available on Xbox One
This change slightly improves MSVO performance on XB1.
1 parent 405e91c commit 3574ae6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PostProcessing/Runtime/Utils/RuntimeUtilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public static bool IsResolvedDepthAvailable(Camera camera)
276276
// TODO: Is there more proper way to determine this? What about SRPs?
277277
var gtype = SystemInfo.graphicsDeviceType;
278278
return camera.actualRenderingPath == RenderingPath.DeferredShading &&
279-
(gtype == GraphicsDeviceType.Direct3D11 || gtype == GraphicsDeviceType.Direct3D12);
279+
(gtype == GraphicsDeviceType.Direct3D11 || gtype == GraphicsDeviceType.Direct3D12 || gtype == GraphicsDeviceType.XboxOne);
280280
}
281281

282282
public static void DestroyProfile(PostProcessProfile profile, bool destroyEffects)

0 commit comments

Comments
 (0)