|
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
using UnityEngine.Rendering; |
|
|
|
using UnityEngine.Rendering.PostProcessing; |
|
|
|
using UnityEngine.XR; |
|
|
|
|
|
|
|
namespace UnityEngine.Experimental.Rendering.HDPipeline |
|
|
|
{ |
|
|
|
|
|
|
#if !UNITY_SWITCH
|
|
|
|
if (m_frameSettings.enableStereo) |
|
|
|
{ |
|
|
|
screenWidth = XRSettings.eyeTextureWidth; |
|
|
|
screenHeight = XRSettings.eyeTextureHeight; |
|
|
|
screenWidth = XRGraphicsConfig.eyeTextureWidth; |
|
|
|
screenHeight = XRGraphicsConfig.eyeTextureHeight; |
|
|
|
var xrDesc = XRSettings.eyeTextureDesc; |
|
|
|
var xrDesc = XRGraphicsConfig.eyeTextureDesc; |
|
|
|
m_ActualWidth = xrDesc.width; |
|
|
|
m_ActualHeight = xrDesc.height; |
|
|
|
|
|
|
|