浏览代码

Fixed HDRP variant

/main
Frédéric Vauchelles 7 年前
当前提交
4a39c649
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 6
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/BuildPlayer/HDRPVariantStripper.cs

6
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/BuildPlayer/HDRPVariantStripper.cs


// Do we have a shader variant stripper function for this shader?
VariantStrippingFunc stripperFunc = null;
m_StripperFuncs.TryGetValue(shader.name, out stripperFunc);
if (stripperFunc == null)
if (stripperFunc == null || inputData.Count == 0)
int inputShaderVariantCount = inputData.Count;
ShaderCompilerData workaround = inputData[0];
var workaround = inputData[0];
for (int i = 0; i < inputData.Count; ++i)
{

正在加载...
取消
保存