浏览代码

Temp fix before we sanitize CommandBuffer usage (can't use nested CBs for now...)

/RenderPassXR_Sandbox
Julien Ignace 8 年前
当前提交
91a24342
共有 1 个文件被更改,包括 8 次插入5 次删除
  1. 13
      Assets/ScriptableRenderPipeline/HDRenderPipeline/Sky/RuntimeFilterIBL.cs

13
Assets/ScriptableRenderPipeline/HDRenderPipeline/Sky/RuntimeFilterIBL.cs


m_GgxConvolveMaterial.SetFloat("_LastLevel", mipCount - 1);
m_GgxConvolveMaterial.SetFloat("_InvOmegaP", invOmegaP);
var cmd = CommandBufferPool.Get("");
//var cmd = CommandBufferPool.Get("");
cmd.BeginSample(sampleName);
//cmd.BeginSample(sampleName);
MaterialPropertyBlock props = new MaterialPropertyBlock();
props.SetFloat("_Level", mip);

Utilities.SetRenderTarget(context, target, ClearFlag.ClearNone, mip, (CubemapFace)face);
var cmd = CommandBufferPool.Get("");
context.ExecuteCommandBuffer(cmd);
CommandBufferPool.Release(cmd);
cmd.EndSample(sampleName);
//cmd.EndSample(sampleName);
context.ExecuteCommandBuffer(cmd);
CommandBufferPool.Release(cmd);
//context.ExecuteCommandBuffer(cmd);
//CommandBufferPool.Release(cmd);
}
// Filters MIP map levels (other than 0) with GGX using BRDF importance sampling.

正在加载...
取消
保存