浏览代码

Merge pull request #1589 from Unity-Technologies/ios-texture-format

Fixup texture format mismatches for Metal on iOS
/main
GitHub 7 年前
当前提交
3201cb35
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      com.unity.render-pipelines.high-definition/HDRP/Material/GGXConvolution/RuntimeFilterIBL.cs
  2. 2
      com.unity.render-pipelines.high-definition/HDRP/RenderPipelineResources/CopyDepthBuffer.shader

2
com.unity.render-pipelines.high-definition/HDRP/Material/GGXConvolution/RuntimeFilterIBL.cs


if (!m_GgxIblSampleData)
{
m_GgxIblSampleData = new RenderTexture(m_GgxIblMaxSampleCount, k_GgxIblMipCountMinusOne, 0, RenderTextureFormat.ARGBFloat, RenderTextureReadWrite.Linear);
m_GgxIblSampleData = new RenderTexture(m_GgxIblMaxSampleCount, k_GgxIblMipCountMinusOne, 0, RenderTextureFormat.ARGBHalf, RenderTextureReadWrite.Linear);
m_GgxIblSampleData.useMipMap = false;
m_GgxIblSampleData.autoGenerateMips = false;
m_GgxIblSampleData.enableRandomWrite = true;

2
com.unity.render-pipelines.high-definition/HDRP/RenderPipelineResources/CopyDepthBuffer.shader


#include "CoreRP/ShaderLibrary/Common.hlsl"
#include "../ShaderVariables.hlsl"
TEXTURE2D(_InputDepthTexture);
TEXTURE2D_FLOAT(_InputDepthTexture);
struct Attributes
{

正在加载...
取消
保存